diff options
author | Matt Kraai | 2000-07-12 17:02:35 +0000 |
---|---|---|
committer | Matt Kraai | 2000-07-12 17:02:35 +0000 |
commit | be84cd4ef66f8956eb4c7ff0542fd1ba823a70e7 (patch) | |
tree | 088bc5b6e06d693ad8ca3eba078c0f3a8e302a24 /chmod_chown_chgrp.c | |
parent | e58771e73c0d8589a458ede4088f5ba70eff917b (diff) | |
download | busybox-be84cd4ef66f8956eb4c7ff0542fd1ba823a70e7.zip busybox-be84cd4ef66f8956eb4c7ff0542fd1ba823a70e7.tar.gz |
Always report the applet name when doing error reporting.
Diffstat (limited to 'chmod_chown_chgrp.c')
-rw-r--r-- | chmod_chown_chgrp.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/chmod_chown_chgrp.c b/chmod_chown_chgrp.c index a5d9af4..98b2925 100644 --- a/chmod_chown_chgrp.c +++ b/chmod_chown_chgrp.c @@ -87,7 +87,7 @@ static int fileAction(const char *fileName, struct stat *statbuf, void* junk) case CHMOD_APP: /* Parse the specified modes */ if (parse_mode(theMode, &(statbuf->st_mode)) == FALSE) { - fatalError( "%s: unknown mode: %s\n", applet_name, theMode); + fatalError( "unknown mode: %s\n", theMode); } if (chmod(fileName, statbuf->st_mode) == 0) return (TRUE); @@ -169,15 +169,14 @@ int chmod_chown_chgrp_main(int argc, char **argv) if (*argv == p) uid = my_getpwnam(*argv); if (uid == -1) { - fatalError( "%s: unknown user name: %s\n", - applet_name, *argv); + fatalError( "unknown user name: %s\n", *argv); } } } /* Ok, ready to do the deed now */ if (argc <= 1) { - fatalError( "%s: too few arguments\n", applet_name); + fatalError( "too few arguments\n"); } while (argc-- > 1) { if (recursiveAction (*(++argv), recursiveFlag, FALSE, FALSE, @@ -187,7 +186,7 @@ int chmod_chown_chgrp_main(int argc, char **argv) exit(TRUE); bad_group: - fatalError( "%s: unknown group name: %s\n", applet_name, groupName); + fatalError( "unknown group name: %s\n", groupName); } /* |