Hi,

I can reproduce this bug with zsh-static 4.3.5-3. Here are some more
infos: (me is an ordinary user)

% HOME=/ strace -f zsh-static -c 'echo 
/usr/local/share/zsh/site-functions(f:g+ws:^g:staff:)'
[…]
open("//.zshenv", O_RDONLY|O_NOCTTY|O_LARGEFILE) = -1 ENOENT (No such file or 
directory)
open("/dev/null", O_RDONLY|O_NOCTTY|O_LARGEFILE) = 3
fcntl64(3, F_DUPFD, 10)                 = 11

So 11 is file descriptor for /dev/null.

close(3)                                = 0
fcntl64(11, F_GETFL)                    = 0x10000 (flags O_RDONLY|O_LARGEFILE)
fstat64(11, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) = 0
ioctl(11, TCGETS, 0xbfd3a188)           = -1 ENOTTY (Inappropriate ioctl for 
device)

Are you sure you can make this call for the special device /dev/null? The
ENOTTY suggests it requests a TTY.

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x481bc000
_llseek(11, 0, [0], SEEK_CUR)           = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
ioctl(2, TCGETS, 0xbfd30b68)            = -1 EINVAL (Invalid argument)
write(2, "zsh:1: unknown group\n", 21zsh:1: unknown group
)  = 21
rt_sigprocmask(SIG_BLOCK, [CHLD], [CHLD], 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [CHLD], [CHLD], 8) = 0
exit_group(1)                           = ?

Bye, Jörg.
-- 
Wenn du nur einen Hammer hast, sieht jedes Problem aus wie ein Nagel.

Attachment: signature.asc
Description: Digital signature http://en.wikipedia.org/wiki/OpenPGP

Reply via email to