summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authormikel <mikel@NetBSD.org>1997-02-07 03:58:45 +0000
committermikel <mikel@NetBSD.org>1997-02-07 03:58:45 +0000
commitff253bf0b4c63bdeae6f8a6421995137f970d809 (patch)
tree7bbea468f7c021bb72ae96b9c359780656be3dec /gnu
parent5762477f9fff229dc449fe7914915f6626caf23e (diff)
print file modes in octal; from Hubert Feyrer in PR bin/3180.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/tar/extract.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gnu/usr.bin/tar/extract.c b/gnu/usr.bin/tar/extract.c
index ec5b8f2fdea..aa20d07f48a 100644
--- a/gnu/usr.bin/tar/extract.c
+++ b/gnu/usr.bin/tar/extract.c
@@ -18,7 +18,7 @@ along with GNU Tar; see the file COPYING. If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifndef lint
-static char rcsid[] = "$NetBSD: extract.c,v 1.6 1995/04/23 08:36:41 cgd Exp $";
+static char rcsid[] = "$NetBSD: extract.c,v 1.7 1997/02/07 03:58:45 mikel Exp $";
#endif /* not lint */
/*
@@ -557,7 +557,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);
}
@@ -762,7 +762,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);
}
@@ -940,7 +940,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);
}