Initial import
[samba] / debian / patches / smbmount-unix-caps.patch
diff --git a/debian/patches/smbmount-unix-caps.patch b/debian/patches/smbmount-unix-caps.patch
new file mode 100644 (file)
index 0000000..8472b3d
--- /dev/null
@@ -0,0 +1,15 @@
+Index: samba-3.0.21c/source/client/smbmount.c
+===================================================================
+--- samba-3.0.21c.orig/source/client/smbmount.c        2006-02-25 11:58:26.184309077 +0100
++++ samba-3.0.21c/source/client/smbmount.c     2006-02-25 11:58:26.999144662 +0100
+@@ -211,6 +211,10 @@
+               c->capabilities &= ~CAP_STATUS32;
+               c->force_dos_errors = True;
+       }
++      /* For now, respect requests for uid-flattening mount options
++         by disabling Unix permissions handling in the kernel driver */
++      if (mount_uid || mount_gid || mount_fmask || mount_dmask)
++              c->capabilities &= ~CAP_UNIX;
+       if (!cli_session_setup(c, username, 
+                              password, strlen(password),