From 7d4eaf8a9b9de38c4bbd144e18eacde456a68250 Mon Sep 17 00:00:00 2001 From: Steve French Date: Tue, 19 Oct 2004 22:05:38 +0000 Subject: r3068: strip guest mount option off before sending to kernel mount routine to avoid logging spurious message (This used to be commit a23c607ef0594ab098d1e5d85fb7635e530e3818) --- source3/client/mount.cifs.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source3/client/mount.cifs.c b/source3/client/mount.cifs.c index 6a7d1e65a1..1793a9ed7f 100755 --- a/source3/client/mount.cifs.c +++ b/source3/client/mount.cifs.c @@ -467,6 +467,12 @@ static int parse_options(char * options, int * filesys_flags) *filesys_flags &= ~MS_NOEXEC; } else if (strncmp(data, "guest", 5) == 0) { got_password=1; + /* remove the parm since it would otherwise be logged by kern */ + data[0] = ','; + data[1] = ','; + data[2] = ','; + data[3] = ','; + data[4] = ','; } else if (strncmp(data, "ro", 2) == 0) { *filesys_flags |= MS_RDONLY; } else if (strncmp(data, "rw", 2) == 0) { -- cgit