import HEAD into svn+ssh://svn.samba.org/home/svn/samba/trunk
[metze/old/v3-2-winbind-ndr.git] / packaging / Debian / debian / patches / smbmount-mtab-flags.patch
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;
15