aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile3
-rw-r--r--runcap.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1f0914d..e0a8f06 100644
--- a/Makefile
+++ b/Makefile
@@ -51,6 +51,9 @@ libruncap.a: $(OBJECTS)
ar $(ARFLAGS) libruncap.a $(OBJECTS)
ranlib libruncap.a
+clean:
+ rm -f libruncap.a $(OBJECTS)
+
install: install-lib install-headers install-man
install-lib: libruncap.a
diff --git a/runcap.c b/runcap.c
index f36d5b1..f2b3d95 100644
--- a/runcap.c
+++ b/runcap.c
@@ -536,6 +536,8 @@ runcap(struct runcap *rc, int flags)
errno = rc->rc_errno;
return -1;
}
+ runcap_rewind(rc, RUNCAP_STDOUT);
+ runcap_rewind(rc, RUNCAP_STDERR);
return 0;
}

Return to:

Send suggestions and report system problems to the System administrator.