diff options
| author | Joerg Wunsch <joerg@FreeBSD.org> | 1996-11-03 14:47:52 +0000 |
|---|---|---|
| committer | Joerg Wunsch <joerg@FreeBSD.org> | 1996-11-03 14:47:52 +0000 |
| commit | 07404e964aa00c729607e2358c1be3ce6401f90a (patch) | |
| tree | 5122cb5780b9858f2b1e8a054249f0439edd202b /gnu/usr.bin/tar | |
| parent | 6eb38cb1e54fce229a49100aa94b6d501a35d14f (diff) | |
Notes
Diffstat (limited to 'gnu/usr.bin/tar')
| -rw-r--r-- | gnu/usr.bin/tar/extract.c | 6 | ||||
| -rw-r--r-- | gnu/usr.bin/tar/rtapelib.c | 18 |
2 files changed, 6 insertions, 18 deletions
diff --git a/gnu/usr.bin/tar/extract.c b/gnu/usr.bin/tar/extract.c index 4b09fadc61a1..2730cc2a3665 100644 --- a/gnu/usr.bin/tar/extract.c +++ b/gnu/usr.bin/tar/extract.c @@ -550,7 +550,7 @@ extract_archive () if (chmod (skipcrud + current_file_name, notumask & (int) hstat.st_mode) < 0) { - msg_perror ("cannot change mode of file %s to %ld", + msg_perror ("cannot change mode of file %s to 0%o", skipcrud + current_file_name, notumask & (int) hstat.st_mode); } @@ -755,7 +755,7 @@ extract_archive () if (chmod (skipcrud + current_file_name, notumask & (int) hstat.st_mode) < 0) { - msg_perror ("cannot change mode of file %s to %ld", + msg_perror ("cannot change mode of file %s to 0%o", skipcrud + current_file_name, notumask & (int) hstat.st_mode); } @@ -933,7 +933,7 @@ restore_saved_dir_info () if (chmod (saved_dir_info_head->path, notumask & saved_dir_info_head->mode) < 0) { - msg_perror ("cannot change mode of file %s to %ld", + msg_perror ("cannot change mode of file %s to 0%o", saved_dir_info_head->path, notumask & saved_dir_info_head->mode); } diff --git a/gnu/usr.bin/tar/rtapelib.c b/gnu/usr.bin/tar/rtapelib.c index eece76ffcd0f..0c23b0670dad 100644 --- a/gnu/usr.bin/tar/rtapelib.c +++ b/gnu/usr.bin/tar/rtapelib.c @@ -372,28 +372,16 @@ __rmt_open (path, oflag, mode, bias) if (*login) { - execl ("/usr/ucb/rsh", "rsh", system, "-l", login, + execl ("/usr/bin/rsh", "rsh", "-l", login, system, "/etc/rmt", (char *) 0); - execl ("/usr/bin/remsh", "remsh", system, "-l", login, - "/etc/rmt", (char *) 0); - execl ("/usr/bin/rsh", "rsh", system, "-l", login, - "/etc/rmt", (char *) 0); - execl ("/usr/bsd/rsh", "rsh", system, "-l", login, - "/etc/rmt", (char *) 0); - execl ("/usr/bin/nsh", "nsh", system, "-l", login, + execlp ("rsh", "rsh", "-l", login, system, "/etc/rmt", (char *) 0); } else { - execl ("/usr/ucb/rsh", "rsh", system, - "/etc/rmt", (char *) 0); - execl ("/usr/bin/remsh", "remsh", system, - "/etc/rmt", (char *) 0); execl ("/usr/bin/rsh", "rsh", system, "/etc/rmt", (char *) 0); - execl ("/usr/bsd/rsh", "rsh", system, - "/etc/rmt", (char *) 0); - execl ("/usr/bin/nsh", "nsh", system, + execlp ("rsh", "rsh", system, "/etc/rmt", (char *) 0); } |
