/[packages]/cauldron/acl/current/SOURCES/acl-2.2.48-CVE-2009-4411.diff
ViewVC logotype

Contents of /cauldron/acl/current/SOURCES/acl-2.2.48-CVE-2009-4411.diff

Parent Directory Parent Directory | Revision Log Revision Log


Revision 524 - (show annotations) (download)
Sat Jan 8 12:45:27 2011 UTC (13 years, 3 months ago) by blino
File size: 1056 byte(s)
imported package acl
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 */

  ViewVC Help
Powered by ViewVC 1.1.30