[Pkg-samba-maint] DO NOT REPLY [Bug 4784] umount.cifs allows all users to unmount shares

samba-bugs at samba.org samba-bugs at samba.org
Thu Jul 12 23:42:53 UTC 2007


------- Comment #1 from vorlon at debian.org  2007-07-12 18:42 CST -------
Created an attachment (id=2815)
 --> (https://bugzilla.samba.org/attachment.cgi?id=2815&action=view)
patch to correctly check the return value of ioctl()

This patch fixes umount.cifs to correctly treat all non-zero return values from
ioctl() as errors, instead of just positive return values.

There is probably a second bug here, in that ENOTTY is being compared against
the return value instead of against errno; I'm not absolutely certain that this
is a bug, though, and I don't have any machines with older cifs support around
that I could check it against, so I haven't included this change in my patch.

Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

More information about the Pkg-samba-maint mailing list