diff options
author | Erik Andersen <andersen@codepoet.org> | 2000-03-28 00:58:14 +0000 |
---|---|---|
committer | Erik Andersen <andersen@codepoet.org> | 2000-03-28 00:58:14 +0000 |
commit | 3364d78b18386623e7af5da18ba1bb0cc6286279 (patch) | |
tree | 36b57afb6f3eefcdc8fdaf40e51fa6956264db50 /chmod_chown_chgrp.c | |
parent | 6acaa40f27de0da935c3063b6be2ead9eeee5d0b (diff) |
Yet another installment in the ongoing tar saga
-Erik
Diffstat (limited to 'chmod_chown_chgrp.c')
-rw-r--r-- | chmod_chown_chgrp.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/chmod_chown_chgrp.c b/chmod_chown_chgrp.c index e197ee3e8..00c6b349a 100644 --- a/chmod_chown_chgrp.c +++ b/chmod_chown_chgrp.c @@ -60,7 +60,7 @@ static const char chmod_usage[] = "\nOptions:\n\t-R\tchange files and directories recursively.\n"; -static int fileAction(const char *fileName, struct stat *statbuf) +static int fileAction(const char *fileName, struct stat *statbuf, void* junk) { switch (whichApp) { case CHGRP_APP: @@ -169,9 +169,8 @@ int chmod_chown_chgrp_main(int argc, char **argv) fatalError( "%s: too few arguments\n", invocationName); } while (argc-- > 1) { - if (recursiveAction - (*(++argv), recursiveFlag, TRUE, FALSE, fileAction, - fileAction) == FALSE) + if (recursiveAction (*(++argv), recursiveFlag, TRUE, FALSE, + fileAction, fileAction, NULL) == FALSE) exit(FALSE); } exit(TRUE); |