smbd not erroring out when it is supposed to

Luther138 barrowsr at uwm.edu
Thu Jul 19 19:30:09 GMT 2007


I have the following trace output from...
strace /bin/smbd -D -d 9

open(0x2ab23be0, 0, 0x7eb428)       = -1 ENOENT (No such file or directory))
open(0x2ab23be0, 0, 0)                   = -1 ENOENT (No such file or
directory))
geteuid()                                         = 0
ioctl(0x7fffffff, 0x540d, 0x7fbf5690)  = -1 EBADF (Bad file descriptor)
(errno)
write(0x4, 0x7eb3e0, 0x31)              = 49
geteuid()                                          = 0
ioctl(0x7fffffff, 0x540d, 0x7fbf5360)   = -1 EBADF (Bad file descriptor)
(errno)
write(0x4, 0x7eb3e0, 0x15)              = 21

It seems to me that the program should error out and quit right away when it
cant open the file but it looks as though instead it passes the negative
file descriptor to other syscalls like ioctl. Should it be doing this? Is
this a bug?
-Robb
-- 
View this message in context: http://www.nabble.com/smbd-not-erroring-out-when-it-is-supposed-to-tf4113223.html#a11696195
Sent from the Samba - samba-technical mailing list archive at Nabble.com.



More information about the samba-technical mailing list