The Samba-Bugzilla – Attachment 3927 Details for
Bug 5996
mount.cifs should support -f
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
add flag -f handling as well as -n flag handling in mount.cifs
fakemount.4.patch (text/plain), 1.13 KB, created by
shirishpargaonkar@gmail.com
on 2009-02-07 08:34:00 UTC
(
hide
)
Description:
add flag -f handling as well as -n flag handling in mount.cifs
Filename:
MIME Type:
Creator:
shirishpargaonkar@gmail.com
Created:
2009-02-07 08:34:00 UTC
Size:
1.13 KB
patch
obsolete
>diff --git a/source3/client/mount.cifs.c b/source3/client/mount.cifs.c >index 9f4d1d3..df5be84 100644 >--- a/source3/client/mount.cifs.c >+++ b/source3/client/mount.cifs.c >@@ -85,6 +85,7 @@ > > const char *thisprogram; > int verboseflag = 0; >+int fakemnt = 0; > static int got_password = 0; > static int got_user = 0; > static int got_domain = 0; >@@ -1103,8 +1104,8 @@ int main(int argc, char ** argv) > mount_cifs_usage (); > exit(EX_USAGE); > case 'n': >- ++nomtab; >- break; >+ ++nomtab; >+ break; > case 'b': > #ifdef MS_BIND > flags |= MS_BIND; >@@ -1209,6 +1210,9 @@ int main(int argc, char ** argv) > break; > case 't': > break; >+ case 'f': >+ ++fakemnt; >+ break; > default: > printf("unknown mount option %c\n",c); > mount_cifs_usage(); >@@ -1410,7 +1414,7 @@ mount_retry: > } > } > >- if (mount(dev_name, mountpoint, "cifs", flags, options)) { >+ if (!fakemnt && mount(dev_name, mountpoint, "cifs", flags, options)) { > switch (errno) { > case ECONNREFUSED: > case EHOSTUNREACH: >@@ -1440,6 +1444,8 @@ mount_retry: > goto mount_exit; > } > >+ if (nomtab) >+ goto mount_exit; > atexit(unlock_mtab); > rc = lock_mtab(); > if (rc) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 5996
:
3907
| 3927