On Tue July 14 2009 14:02:36 Kamil Dudka wrote:
> attached are strace outputs from Fedora and Debian. I can see one
> suspicious place in that - this is the first main difference between Fedora
> and Debian:
Oops, once again:
Fedora strace:
open("m4", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 5
fcntl(5, F_GETFD) = 0x1 (flags FD_CLOEXEC)
fchdir(5) = 0
getdents(5, /* 14 entries */, 32768) = 456
getdents(5, /* 0 entries */, 32768) = 0
close(5) = 0
Debian strace:
openat(AT_FDCWD, "m4", O_RDONLY) = 4
fstat(4, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
fcntl(4, F_GETFL) = 0x8000 (flags O_RDONLY|
O_LARGEFILE)
fcntl(4, F_SETFD, FD_CLOEXEC) = 0
fcntl(4, F_DUPFD, 3) = 5
getdents(4, /* 14 entries */, 4096) = 456
getdents(4, /* 0 entries */, 4096) = 0
close(4) = 0
> In other words on Debian find does not change the working directory before
> calling lgetxattr syscall. That's why lgetxattr does not see the file and
> returns ENOENT (No such file or directory).
>
> Does anybody here guess what's going on? (before I investigate it further)
Kamil