PERFORCE change 22691 for review
Robert Watson
rwatson at freebsd.org
Tue Dec 24 04:19:47 GMT 2002
http://perforce.freebsd.org/chv.cgi?CH=22691
Change 22691 by rwatson at rwatson_paprika on 2002/12/23 20:19:27
If generating ACL from stat() results, obey h flag and use
lstat.
Affected files ...
.. //depot/projects/trustedbsd/acl/bin/getfacl/getfacl.c#5 edit
Differences ...
==== //depot/projects/trustedbsd/acl/bin/getfacl/getfacl.c#5 (text+ko) ====
@@ -154,7 +154,10 @@
char *acl_text;
int error;
- error = stat(path, &sb);
+ if (hflag)
+ error = lstat(path, &sb);
+ else
+ error = stat(path, &sb);
if (error == -1) {
warn("%s", path);
return(-1);
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list