|
|
| version 1.21, 2007/11/21 05:14:46 | version 1.22, 2007/12/04 05:11:38 |
|---|---|
| Line 435 int do_print(const char *path_p, const s | Line 435 int do_print(const char *path_p, const s |
| return 1; | return 1; |
| } | } |
| /* | |
| * Symlinks can never have ACLs, so when doing a physical walk, we | |
| * skip symlinks altogether, and when doing a half-logical walk, we | |
| * skip all non-toplevel symlinks. | |
| */ | |
| if ((walk_flags & WALK_TREE_SYMLINK) && | |
| ((walk_flags & WALK_TREE_PHYSICAL) || | |
| !(walk_flags & (WALK_TREE_TOPLEVEL | WALK_TREE_LOGICAL)))) | |
| return 0; | |
| if (opt_print_acl) { | if (opt_print_acl) { |
| acl = acl_get_file(path_p, ACL_TYPE_ACCESS); | acl = acl_get_file(path_p, ACL_TYPE_ACCESS); |
| if (acl == NULL && (errno == ENOSYS || errno == ENOTSUP)) | if (acl == NULL && (errno == ENOSYS || errno == ENOTSUP)) |
| Line 697 int main(int argc, char *argv[]) | Line 707 int main(int argc, char *argv[]) |
| if (*line == '\0') | if (*line == '\0') |
| continue; | continue; |
| had_errors += walk_tree(line, walk_flags, do_print, NULL); | had_errors += walk_tree(line, walk_flags, 0, |
| do_print, NULL); | |
| } | } |
| if (!feof(stdin)) { | if (!feof(stdin)) { |
| fprintf(stderr, _("%s: Standard input: %s\n"), | fprintf(stderr, _("%s: Standard input: %s\n"), |
| Line 705 int main(int argc, char *argv[]) | Line 716 int main(int argc, char *argv[]) |
| had_errors++; | had_errors++; |
| } | } |
| } else | } else |
| had_errors += walk_tree(argv[optind], walk_flags, do_print, NULL); | had_errors += walk_tree(argv[optind], walk_flags, 0, |
| do_print, NULL); | |
| optind++; | optind++; |
| } while (optind < argc); | } while (optind < argc); |