smbd not erroring out when it is supposed to

Gerald (Jerry) Carter jerry at samba.org
Wed Aug 15 20:38:23 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Robb,

> 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?

What file is smbd trying to open?  There's not enough
context here to provide any feedback.




cheers, jerry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGw2Q/IR7qMdg1EfYRAtHFAJ9H1nolVDPEhIUOV8L7/H3miS8kxACfc/Mx
YnTh77dBkqSkAH51X1nL8lQ=
=f4v6
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list