r11389: Attempt to fix bug #3212 - ignore bogus OS/2 EA set values on
[Samba.git] / packaging / Debian / debian-stable / patches / smbmount-mtab-flags.patch
blobdac999dd63c0eb015e9a7e7822498c1202cfe805
1 diff -ur samba-2.2.4.orig/source/client/smbmnt.c samba-2.2.4/source/client/smbmnt.c
2 --- samba-2.2.4.orig/source/client/smbmnt.c Sun Apr 8 15:22:51 2001
3 +++ samba-2.2.4/source/client/smbmnt.c Sun May 5 16:42:29 2002
4 @@ -259,7 +259,10 @@
5 ment.mnt_fsname = share_name ? share_name : "none";
6 ment.mnt_dir = mount_point;
7 ment.mnt_type = "smbfs";
8 - ment.mnt_opts = "";
9 + if (mount_ro)
10 + ment.mnt_opts = "ro";
11 + else
12 + ment.mnt_opts = "rw";
13 ment.mnt_freq = 0;
14 ment.mnt_passno= 0;