Initial import
[samba] / debian / patches / smbmount-unix-caps.patch
1 Index: samba-3.0.21c/source/client/smbmount.c
2 ===================================================================
3 --- samba-3.0.21c.orig/source/client/smbmount.c 2006-02-25 11:58:26.184309077 +0100
4 +++ samba-3.0.21c/source/client/smbmount.c      2006-02-25 11:58:26.999144662 +0100
5 @@ -211,6 +211,10 @@
6                 c->capabilities &= ~CAP_STATUS32;
7                 c->force_dos_errors = True;
8         }
9 +       /* For now, respect requests for uid-flattening mount options
10 +          by disabling Unix permissions handling in the kernel driver */
11 +       if (mount_uid || mount_gid || mount_fmask || mount_dmask)
12 +               c->capabilities &= ~CAP_UNIX;
13  
14         if (!cli_session_setup(c, username, 
15                                password, strlen(password),