X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-sameacls.c;h=9453f69edf39cd7ad15f4994fc9ea34a9dcf94d1;hb=1697fcca5dcb036ef6647969cbbaad907d16479c;hp=20b0a4742de50875e80e502b6eb6bd60a7f3ce91;hpb=d466aadf2bfa3a1a23f56d7bb627845614df815d;p=gnulib.git diff --git a/tests/test-sameacls.c b/tests/test-sameacls.c index 20b0a4742..9453f69ed 100644 --- a/tests/test-sameacls.c +++ b/tests/test-sameacls.c @@ -447,7 +447,9 @@ main (int argc, char *argv[]) mode_t mode2; char text2[1000]; - memset (&type1, 0, sizeof (type1)); /* type1 = ACL_ANY */ + /* The docs say that type1 being 0 is equivalent to ACL_ANY, but it is not + true, in AIX 5.3. */ + type1.u64 = ACL_ANY; if (aclx_get (file1, 0, &type1, acl1, &aclsize1, &mode1) < 0) { fprintf (stderr, "error accessing the ACLs of file %s\n", file1); @@ -461,7 +463,9 @@ main (int argc, char *argv[]) abort (); } - memset (&type2, 0, sizeof (type2)); /* type2 = ACL_ANY */ + /* The docs say that type2 being 0 is equivalent to ACL_ANY, but it is not + true, in AIX 5.3. */ + type2.u64 = ACL_ANY; if (aclx_get (file2, 0, &type2, acl2, &aclsize2, &mode2) < 0) { fprintf (stderr, "error accessing the ACLs of file %s\n", file2);