smbd not erroring out when it is supposed to
Luther138
barrowsr at uwm.edu
Wed Aug 15 21:23:26 GMT 2007
Gerald (Jerry) Carter wrote:
>
> -----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-----
>
>
This is an old post, the problem has since been solved although I don't
remember really what the problem was, see my other "errors while
crosscompiling" post, it has full details on how what I was doing and how I
got it working, thanks for the response none the less.
-Robb
--
View this message in context: http://www.nabble.com/smbd-not-erroring-out-when-it-is-supposed-to-tf4113223.html#a12170786
Sent from the Samba - samba-technical mailing list archive at Nabble.com.
More information about the samba-technical
mailing list