PERFORCE change 22686 for review

Robert Watson rwatson at freebsd.org
Tue Dec 24 03:57:12 GMT 2002


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

Change 22686 by rwatson at rwatson_paprika on 2002/12/23 19:56:27

	<enter description here>
	Oops, _link() calls are suffixed with _np as non-portable.

Affected files ...

.. //depot/projects/trustedbsd/acl/bin/getfacl/getfacl.c#3 edit
.. //depot/projects/trustedbsd/acl/bin/setfacl/setfacl.c#3 edit

Differences ...

==== //depot/projects/trustedbsd/acl/bin/getfacl/getfacl.c#3 (text+ko) ====

@@ -168,7 +168,7 @@
 	printf("#file:%s\n#owner:%d\n#group:%d\n", path, sb.st_uid, sb.st_gid);
 
 	if (hflag)
-		acl = acl_get_link(path, type);
+		acl = acl_get_link_np(path, type);
 	else
 		acl = acl_get_file(path, type);
 	if (!acl) {

==== //depot/projects/trustedbsd/acl/bin/setfacl/setfacl.c#3 (text+ko) ====

@@ -72,14 +72,14 @@
 
 	acl = zmalloc(sizeof(acl_t) * 2);
 	if (h_flag)
-		acl[ACCESS_ACL] = acl_get_link(filename, ACL_TYPE_ACCESS);
+		acl[ACCESS_ACL] = acl_get_link_np(filename, ACL_TYPE_ACCESS);
 	else
 		acl[ACCESS_ACL] = acl_get_file(filename, ACL_TYPE_ACCESS);
 	if (acl[ACCESS_ACL] == NULL)
 		err(1, "acl_get_file() failed");
 	if (S_ISDIR(sb.st_mode)) {
 		if (h_flag)
-			acl[DEFAULT_ACL] = acl_get_link(filename,
+			acl[DEFAULT_ACL] = acl_get_link_np(filename,
 			    ACL_TYPE_DEFAULT);
 		else
 			acl[DEFAULT_ACL] = acl_get_file(filename,
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