• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/samba-3.0.25b/packaging/Debian/debian-unstable/patches/
1diff -uNr samba-3.0.14a.orig/source/client/smbmount.c samba-3.0.14a/source/client/smbmount.c
2--- samba-3.0.14a.orig/source/client/smbmount.c	2005-06-02 06:49:31.000000000 -0700
3+++ samba-3.0.14a/source/client/smbmount.c	2005-06-02 06:59:41.000000000 -0700
4@@ -213,6 +213,10 @@
5   		c->capabilities &= ~CAP_STATUS32;
6 		c->force_dos_errors = True;
7 	}
8+	/* For now, respect requests for uid-flattening mount options
9+	   by disabling Unix permissions handling in the kernel driver */
10+	if (mount_uid || mount_gid || mount_fmask || mount_dmask)
11+		c->capabilities &= ~CAP_UNIX;
12 
13 	if (!cli_session_setup(c, username, 
14 			       password, strlen(password),
15