[Top] [All Lists]

Re: acl and attr: Fix path walking code

To: Timothy Shimmin <tes@xxxxxxx>
Subject: Re: acl and attr: Fix path walking code
From: Andreas Gruenbacher <agruen@xxxxxxx>
Date: Fri, 23 Nov 2007 13:24:40 +0100
Cc: linux-xfs@xxxxxxxxxxx, Gerald Bringhurst <gbringhurst@xxxxxxxxxx>, Brandon Philips <bphilips@xxxxxxx>
In-reply-to: <47426C70.3070704@xxxxxxx>
Organization: SUSE Labs
References: <200710281858.24428.agruen@xxxxxxx> <473A82E6.50709@xxxxxxx> <47426C70.3070704@xxxxxxx>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: KMail/1.9.6 (enterprise 20070904.708012)
On Tuesday 20 November 2007 06:11:12 Timothy Shimmin wrote:
> Okay, looked at the code.
> ---
> no -h => stat, getxattr, listxattr
> -h    => lstat, lgetxattr, llistxattr


> -P => skip symlinks (as soon as see them, then return from place in walk)

No, -h never skips symlinks. (But depending on -L and -P, it may not follow 
symlinks to directories.) Here is an additional comment for do_print, and an 
equivalent version of the if in there. I hope that this will finally clarify 
the code.

> it would be nicer to have more explanation in the man page.

Agreed. How about the attached manpage patches?


Attachment: equivalent-version.diff
Description: Text Data

Attachment: comment.diff
Description: Text Data

Attachment: man-acl.diff
Description: Text Data

Attachment: man-attr.diff
Description: Text Data

<Prev in Thread] Current Thread [Next in Thread>