Bug#640325: faccessat broken for user root?
Package: libc0.1-dev
Version: 2.13-18
Severity: grave
User: debian-bsd@lists.debian.org
Usertags: kfreebsd
Hi!
The following code (extracted from dash's test builtin) is behaving
differently between linux and kfreebsd, having a 644 `test' file and
running it on linux as root user prints -1 while on kfreebsd it prints
0.
-------------------------------------------------------
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
int main () {
printf("%d\n", faccessat(AT_FDCWD, "test", X_OK, AT_EACCESS));
}
-------------------------------------------------------
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: kfreebsd-amd64 (x86_64)
Kernel: kFreeBSD 8.2-1-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libc0.1-dev depends on:
ii kfreebsd-kernel-headers 0.57 kernel of FreeBSD headers for deve
ii libc-dev-bin 2.13-18 Embedded GNU C Library: Developmen
ii libc0.1 2.13-18 Embedded GNU C Library: Shared lib
Versions of packages libc0.1-dev recommends:
ii gcc [c-compiler] 4:4.6.1-2 GNU C compiler
ii gcc-4.4 [c-compiler] 4.4.6-8 GNU C compiler
ii gcc-4.6 [c-compiler] 4.6.1-7 GNU C compiler
Versions of packages libc0.1-dev suggests:
pn glibc-doc <none> (no description available)
ii manpages-dev 3.32-0.2 Manual pages about using GNU/Linux
-- no debconf information
Reply to: