X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-chown.h;h=7f703ebb434839f0f37f056b1b5cae99e81c77c4;hb=1276a2c5f24c0c932426aca9c899fa524d2443f2;hp=c99ffc1d055eed6118481b46afd7ae70f2157f9a;hpb=5e29a7a095a6c960115cf48f5b28278194a0b2ca;p=gnulib.git diff --git a/tests/test-chown.h b/tests/test-chown.h index c99ffc1d0..7f703ebb4 100644 --- a/tests/test-chown.h +++ b/tests/test-chown.h @@ -1,5 +1,5 @@ /* Tests of chown. - Copyright (C) 2009-2011 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 @@ -38,7 +38,7 @@ test_chown (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, @@ -57,9 +57,9 @@ test_chown (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)