Bug#310982: smbmount does not honor uid and gid options with 2.4 kernel
On Fri, May 27, 2005 at 12:20:49PM -0700, Steve Langasek wrote:
> On Sat, May 28, 2005 at 05:17:39AM +1000, Andrew Bartlett wrote:
> Yeah, on second look I see that it can be done in smbmount, and this would
> be a far more expedient fix.
You mean something like the patch below ?
(Not tested yet, want to be sure this is the idea)
Imagine a large red swirl here.
@@ -212,6 +212,8 @@
c->capabilities &= ~CAP_STATUS32;
c->force_dos_errors = True;
+ if (mount_uid || mount_gid || mount_fmask || mount_dmask)
+ c->capabilities &= ~CAP_UNIX;
if (!cli_session_setup(c, username,