• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/samba-3.0.25b/packaging/Debian/debian-unstable/patches/
1diff -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 
16