X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-lchown.h;h=329b6deecbaee7dc830c44d211596ca93d39dc2e;hb=cd56634a4a8179fd5a4419fbb3e27211b042ab1c;hp=c8d43f5b4d751508e91389303af01ffa84db512a;hpb=8d8eda4eab3d2801251daf4eb31756c3595e2fc6;p=gnulib.git diff --git a/tests/test-lchown.h b/tests/test-lchown.h index c8d43f5b4..329b6deec 100644 --- a/tests/test-lchown.h +++ b/tests/test-lchown.h @@ -1,5 +1,5 @@ /* Tests of lchown. - Copyright (C) 2009, 2010 Free Software Foundation, Inc. + Copyright (C) 2009-2014 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -46,7 +46,7 @@ test_lchown (int (*func) (char const *, uid_t, gid_t), bool print) int result; /* Solaris 8 is interesting - if the current process belongs to - multiple groups, the current directory is owned by a a group that + multiple groups, the current directory is owned by a group that the current process belongs to but different than getegid(), and the current directory does not have the S_ISGID bit, then regular files created in the directory belong to the directory's group, @@ -65,9 +65,9 @@ test_lchown (int (*func) (char const *, uid_t, gid_t), bool print) ASSERT (mkdir (BASE "dir", 0700) == 0); ASSERT (stat (BASE "dir", &st1) == 0); - /* Filter out mingw, which has no concept of groups. */ + /* Filter out mingw and file systems which have no concept of groups. */ result = func (BASE "dir", st1.st_uid, getegid ()); - if (result == -1 && errno == ENOSYS) + if (result == -1 && (errno == ENOSYS || errno == EPERM)) { ASSERT (rmdir (BASE "dir") == 0); if (print)