diff options
author | Eric Andersen <andersen@codepoet.org> | 1999-10-12 15:42:48 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 1999-10-12 15:42:48 +0000 |
commit | 2ce1edcf544ac675e6762c9861a6b918401ea716 (patch) | |
tree | 34245558cd448f01969679fc420de4dfd246dc13 /chown.c | |
parent | f811e07b072600a3784a92e5a1dc8a93dac477eb (diff) |
Latest and greatest.
-Erik
Diffstat (limited to 'chown.c')
-rw-r--r-- | chown.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -66,7 +66,7 @@ int chown_main(int argc, char **argv) if (argc < 2) { fprintf(stderr, "Usage: %s %s", *argv, (chownApp==TRUE)? chown_usage : chgrp_usage); - return( FALSE); + exit( FALSE); } invocationName=*argv; argc--; @@ -80,7 +80,7 @@ int chown_main(int argc, char **argv) break; default: fprintf(stderr, "Unknown option: %c\n", **argv); - return( FALSE); + exit( FALSE); } argc--; argv++; @@ -95,7 +95,7 @@ int chown_main(int argc, char **argv) grp = getgrnam(groupName); if (grp == NULL) { fprintf(stderr, "%s: Unknown group name: %s\n", invocationName, groupName); - return( FALSE); + exit( FALSE); } gid = grp->gr_gid; @@ -104,7 +104,7 @@ int chown_main(int argc, char **argv) pwd = getpwnam(*argv); if (pwd == NULL) { fprintf(stderr, "%s: Unknown user name: %s\n", invocationName, *argv); - return( FALSE); + exit( FALSE); } uid = pwd->pw_uid; } @@ -112,11 +112,11 @@ int chown_main(int argc, char **argv) /* Ok, ready to do the deed now */ if (argc <= 1) { fprintf(stderr, "%s: too few arguments", invocationName); - return( FALSE); + exit( FALSE); } while (argc-- > 1) { argv++; recursiveAction( *argv, recursiveFlag, TRUE, fileAction, fileAction); } - return(TRUE); + exit(TRUE); } |