PERFORCE change 146832 for review

Edward Tomasz Napierala trasz at FreeBSD.org
Thu Aug 7 11:58:44 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=146832

Change 146832 by trasz at trasz_traszkan on 2008/08/07 11:58:23

	Minor tweak for getfacl(1) error messages.

Affected files ...

.. //depot/projects/soc2008/trasz_nfs4acl/bin/getfacl/getfacl.c#9 edit

Differences ...

==== //depot/projects/soc2008/trasz_nfs4acl/bin/getfacl/getfacl.c#9 (text+ko) ====

@@ -187,7 +187,7 @@
 	else
 		error = stat(path, &sb);
 	if (error == -1) {
-		warn("%s", path);
+		warn("%s: stat() failed", path);
 		return(-1);
 	}
 
@@ -217,7 +217,7 @@
 			return(0);
 		acl = acl_from_stat(sb);
 		if (!acl) {
-			warn("acl_from_stat()");
+			warn("%s: acl_from_stat() failed", path);
 			return(-1);
 		}
 	}
@@ -230,7 +230,7 @@
 
 	acl_text = acl_to_text_np(acl, 0, flags);
 	if (!acl_text) {
-		warn("%s", path);
+		warn("%s: acl_to_text_np() failed", path);
 		return(-1);
 	}
 


More information about the p4-projects mailing list