summaryrefslogtreecommitdiff
path: root/src/rm.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1993-10-13 22:30:38 +0000
committerJim Meyering <jim@meyering.net>1993-10-13 22:30:38 +0000
commit20905f2c93b659dc8908044132b8336439d8e8ee (patch)
treea63d116534b33608178d8a3874b09c258df0b731 /src/rm.c
parent7691d2fba0dcb802ab471f5c441c308452abf791 (diff)
downloadcoreutils-20905f2c93b659dc8908044132b8336439d8e8ee.tar.xz
merge with 3.8.4e
Diffstat (limited to 'src/rm.c')
-rw-r--r--src/rm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rm.c b/src/rm.c
index acb0e8259..b7227fad1 100644
--- a/src/rm.c
+++ b/src/rm.c
@@ -238,7 +238,7 @@ remove_file (statp)
program_name,
S_ISDIR (statp->st_mode) ? "directory " : "",
pathname,
- statp->st_mode & 07777);
+ (unsigned int) (statp->st_mode & 07777));
if (!yesno ())
return 1;
}
@@ -284,7 +284,8 @@ remove_dir (statp)
{
fprintf (stderr,
"%s: descend directory `%s', overriding mode %04o? ",
- program_name, pathname, statp->st_mode & 07777);
+ program_name, pathname,
+ (unsigned int) (statp->st_mode & 07777));
if (!yesno ())
return 1;
}