From ae81b2009c2650184ed4d505581929b363de2a9f Mon Sep 17 00:00:00 2001 From: Stelian Pop Date: Thu, 2 Mar 2000 12:07:36 +0000 Subject: [PATCH] Added missing prototype. Document the revert to read uid/gid in dump man page. --- dump/dump.8.in | 19 +++++++++++++------ dump/tape.c | 3 ++- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/dump/dump.8.in b/dump/dump.8.in index 9085f1a..50c8fde 100644 --- a/dump/dump.8.in +++ b/dump/dump.8.in @@ -30,7 +30,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $Id: dump.8.in,v 1.12 2000/03/02 11:34:51 stelian Exp $ +.\" $Id: dump.8.in,v 1.13 2000/03/02 12:07:36 stelian Exp $ .\" .Dd __DATE__ .Dt DUMP 8 @@ -195,11 +195,18 @@ program is this can be overridden by the environment variable .Ev RMT . .It Fl F Ar script -Run script at the end of each tape. The script must return 0 -if the dump should continue without asking the user to change -the tape, 1 if the dump should continue but ask the user -to change the tape. Any other exit code will cause dump to -abort. +Run script at the end of each tape. The script must return 0 if +.Nm +should continue without asking the user to change the tape, 1 if +.Nm +dump should continue but ask the user to change the tape. +Any other exit code will cause +.Nm +to abort. +For security reasons, +.Nm +reverts back to the real user ID and the real group ID before +running the script. .It Fl k Use Kerberos authentication to talk to remote tape servers. (Only available if this option was enabled when diff --git a/dump/tape.c b/dump/tape.c index 3477949..aa8f730 100644 --- a/dump/tape.c +++ b/dump/tape.c @@ -40,7 +40,7 @@ #ifndef lint static const char rcsid[] = - "$Id: tape.c,v 1.15 2000/03/02 11:34:51 stelian Exp $"; + "$Id: tape.c,v 1.16 2000/03/02 12:07:36 stelian Exp $"; #endif /* not lint */ #ifdef __linux__ @@ -107,6 +107,7 @@ static void enslave __P((void)); static void flushtape __P((void)); static void killall __P((void)); static void rollforward __P((void)); +static int system_command __P((const char *command)); /* * Concurrent dump mods (Caltech) - disk block reading and tape writing -- 2.39.2