From dd3a0643e41ad5c69e364f79b3a059f9da7f50c4 Mon Sep 17 00:00:00 2001 From: Fedor Date: Tue, 31 Aug 2010 20:06:46 -0400 Subject: [PATCH] rc: allow CIFS custom mount options via nvram variable --- release/src/router/rc/cifs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/release/src/router/rc/cifs.c b/release/src/router/rc/cifs.c index 13b993127a..031667b0ed 100644 --- a/release/src/router/rc/cifs.c +++ b/release/src/router/rc/cifs.c @@ -30,7 +30,7 @@ int mount_cifs_main(int argc, char *argv[]) int i, j; int try; int first; - char *on, *unc, *user, *pass, *dom, *exec, *servern, *sec; + char *on, *unc, *user, *pass, *dom, *exec, *servern, *sec, *custom; int done[3]; if (argc == 2) { @@ -48,6 +48,7 @@ int mount_cifs_main(int argc, char *argv[]) sprintf(s, "cifs%d", i); strlcpy(s, nvram_safe_get(s), sizeof(s)); if ((vstrsep(s, "<", &on, &unc, &user, &pass, &dom, &exec, &servern, &sec) != 8) || (*on != '1')) continue; + custom = nvram_safe_get("cifs_opts"); done[i] = 0; @@ -63,6 +64,7 @@ int mount_cifs_main(int argc, char *argv[]) if (*dom) j += sprintf(opt + j, "