1 |
--- setfacl/setfacl.c 2009-06-29 15:17:25.000000000 -0400 |
2 |
+++ setfacl/setfacl.c.oden 2009-12-28 15:56:55.000000000 -0500 |
3 |
@@ -76,7 +76,7 @@ struct option long_options[] = { |
4 |
const char *progname; |
5 |
const char *cmd_line_options, *cmd_line_spec; |
6 |
|
7 |
-int walk_flags = WALK_TREE_DEREFERENCE; |
8 |
+int walk_flags = WALK_TREE_DEREFERENCE_TOPLEVEL; |
9 |
int opt_recalculate; /* recalculate mask entry (0=default, 1=yes, -1=no) */ |
10 |
int opt_promote; /* promote access ACL to default ACL */ |
11 |
int opt_test; /* do not write to the file system. |
12 |
@@ -580,13 +580,14 @@ int main(int argc, char *argv[]) |
13 |
break; |
14 |
|
15 |
case 'L': /* follow symlinks */ |
16 |
- walk_flags |= WALK_TREE_LOGICAL; |
17 |
+ walk_flags |= WALK_TREE_LOGICAL | WALK_TREE_DEREFERENCE; |
18 |
walk_flags &= ~WALK_TREE_PHYSICAL; |
19 |
break; |
20 |
|
21 |
case 'P': /* do not follow symlinks */ |
22 |
walk_flags |= WALK_TREE_PHYSICAL; |
23 |
- walk_flags &= ~WALK_TREE_LOGICAL; |
24 |
+ walk_flags &= ~(WALK_TREE_LOGICAL | WALK_TREE_DEREFERENCE | |
25 |
+ WALK_TREE_DEREFERENCE_TOPLEVEL); |
26 |
break; |
27 |
|
28 |
case 't': /* test mode */ |