URL:
<http://savannah.gnu.org/bugs/?28383>
Summary: Non-compliant access behavior?
Project: The GNU Hurd
Submitted by: sthibaul
Submitted on: mer 23 déc 2009 01:10:51 CET
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Reproducibility: None
Size (loc): None
Planned Release: None
Effort: 0.00
Wiki-like text discussion box:
_______________________________________________________
Details:
$ id
uid=1005(buildd) gid=106(sbuild) groups=106(sbuild),1005(buildd)
$ mkdir foo
$ echo a > foo/bar
$ chmod 750 foo
$ sudo chown root.buildd foo
$ cat foo/bar
a
$ cat > test.c
#include <stdio.h>
#include <unistd.h>
int main(void) {
printf("%d\n", access("foo/bar", F_OK));
perror("access");
return 0;
}
$ make test
$ ./test
-1
access: Permission denied
Apparently access() restricts itself to the real gid, without including
supplementary group IDs.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?28383>
_______________________________________________
Message posté via/par Savannah
http://savannah.gnu.org/