[PATCH] smbumount problem

Colin Leroy colin at savoirweb.com
Mon Oct 21 11:55:00 GMT 2002


Hi,

smbumount kept telling me that "You are not allowed to unmount $share".
This was because of the ioctl used, which was setting mount_uid to a
really strange result.

Here's a patch that fixes it, at least for me (on a 2.4.18 kernel).
That's a patch against 2.2.6 tarball.

Please Cc: me on replies, as I'm not subscribed.

regards,
-- 
Colin
http://dudusdl.sf.net/ : a free Puzzle Bubble clone
-------------- next part --------------
--- samba-2.2.6/source/client/smbumount.c	Wed Oct  9 22:27:21 2002
+++ samba-2.2.6-uid/source/client/smbumount.c	Mon Oct 21 13:45:00 2002
@@ -21,7 +21,7 @@
 	future.  In the mean time, it's ugly hack time - get over it.
 */
 #undef SMB_IOC_GETMOUNTUID
-#define	SMB_IOC_GETMOUNTUID		_IOR('u', 1, __kernel_uid_t)
+#define	SMB_IOC_GETMOUNTUID		_IOR('u', 3, __kernel_uid32_t)
 
 #ifndef O_NOFOLLOW
 #define O_NOFOLLOW     0400000


More information about the samba-technical mailing list