From: "Søren Hansen" <sh@warma.dk>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: smbfs patch
Date: Thu, 04 Mar 2004 23:20:39 +0100 [thread overview]
Message-ID: <1078438839.10042.6.camel@luke> (raw)
I noticed that smbfs no longer respects the "uid" and "gid" mount
options passed to it by mount.(I think it stopped when the server was
upgraded to Samba 3.0. Not sure though, since my client was upgraded to
Linux 2.6.3 at around the same time). I've made this small patch that
fixes it (bear with me, this is my first patch to the kernel :-) ):
======== Start patch ========
--- kernel-source-2.6.3.orig/fs/smbfs/proc.c 2004-02-19
08:55:44.000000000 +0 000
+++ kernel-source-2.6.3/fs/smbfs/proc.c 2004-03-04
13:56:04.000000000 +0 000
@@ -1834,7 +1834,13 @@
static void
smb_finish_dirent(struct smb_sb_info *server, struct smb_fattr *fattr)
{
- if (fattr->f_unix)
+
+ if (server->mnt->uid)
+ fattr->f_uid = server->mnt->uid;
+ if (server->mnt->gid)
+ fattr->f_gid = server->mnt->gid;
+
+ if (fattr->f_unix)
return;
fattr->f_mode = server->mnt->file_mode;
======= End patch ========
--
Søren Hansen
next reply other threads:[~2004-03-04 22:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-04 22:20 Søren Hansen [this message]
2004-03-08 21:25 ` Stian Jordet
2004-03-08 21:50 ` Urban Widmark
2004-03-08 23:06 ` Stian Jordet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1078438839.10042.6.camel@luke \
--to=sh@warma.dk \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®