X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=dump%2Ftape.c;h=c1046674682714d459d00a25574d494fda3f9208;hp=69715003e67bf772103bfad8d0b5d996a64c03ec;hb=d8574d458324cdde27484485cb09e7c9b8fa1a77;hpb=c38e5b6a9c658f06d9b27f33e9db131ffa23d947 diff --git a/dump/tape.c b/dump/tape.c index 6971500..c104667 100644 --- a/dump/tape.c +++ b/dump/tape.c @@ -40,7 +40,7 @@ #ifndef lint static const char rcsid[] = - "$Id: tape.c,v 1.19 2000/05/28 16:24:14 stelian Exp $"; + "$Id: tape.c,v 1.20 2000/06/01 18:30:08 stelian Exp $"; #endif /* not lint */ #ifdef __linux__ @@ -422,7 +422,11 @@ int system_command(const char *command, const char *device, int volnum) { if (pid == 0) { setuid(getuid()); setgid(getgid()); +#if OLD_STYLE_FSCRIPT + snprintf(commandstr, sizeof(commandstr), "%s", command); +#else snprintf(commandstr, sizeof(commandstr), "%s %s %d", command, device, volnum); +#endif commandstr[sizeof(commandstr) - 1] = '\0'; execl("/bin/sh", "sh", "-c", commandstr, NULL); perror(" DUMP: unable to execute shell");