patch-2.3.39 linux/fs/smbfs/ioctl.c

Next file: linux/fs/stat.c
Previous file: linux/fs/qnx4/symlinks.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.38/linux/fs/smbfs/ioctl.c linux/fs/smbfs/ioctl.c
@@ -11,6 +11,7 @@
 #include <linux/ioctl.h>
 #include <linux/sched.h>
 #include <linux/mm.h>
+#include <linux/highuid.h>
 
 #include <linux/smb_fs.h>
 #include <linux/smb_mount.h>
@@ -27,6 +28,9 @@
 	switch (cmd)
 	{
 	case SMB_IOC_GETMOUNTUID:
+		result = put_user(high2lowuid(server->mnt->mounted_uid), (old_uid_t *) arg);
+		break;
+	case SMB_IOC_GETMOUNTUID32:
 		result = put_user(server->mnt->mounted_uid, (uid_t *) arg);
 		break;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)