- else {
- if (recursiveAction( srcName, recursiveFlag, FALSE,
- TRUE, fileAction, dirAction) == FALSE) {
- exit( FALSE);
- }
+
+ while (argc-- > 0) {
+ srcName = *(argv++);
+ if (forceFlag == TRUE && lstat(srcName, &statbuf) != 0
+ && errno == ENOENT) {
+ /* do not reports errors for non-existent files if -f, just skip them */
+ } else {
+ if (recursive_action(srcName, recursiveFlag, FALSE,
+ TRUE, fileAction, dirAction, NULL) == FALSE) {
+ status = EXIT_FAILURE;
+ }
+ }