Introduction
Introduction Statistics Contact Development Disclaimer Help
Added mount options to doc/usmb.conf. Fixed SAX state machine bug in </options>…
git clone git://git.codemadness.org/susmb
Log
Files
Refs
README
LICENSE
---
commit 40ef6555471f3a59708239bdf86538f1cd5eae90
parent bba4f0b2f52353d7f5d1d623abcb1a511a4123df
Author: geoff <devnull@localhost>
Date: Sun, 7 May 2006 23:10:29 +0000
Added mount options to doc/usmb.conf.
Fixed SAX state machine bug in </options> target state.
Diffstat:
M doc/usmb.conf | 12 ++++++++++++
M sax.c | 2 +-
2 files changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/doc/usmb.conf b/doc/usmb.conf
@@ -11,6 +11,17 @@
usmb home
usmb music
+
+ Mount options are comma-separated. Useful options:
+
+ hard_remove - immediate removal (don't hide files)
+ umask=M - set file permissions (octal)
+ uid=N - set file owner
+ gid=N - set file group
+ allow_other - allow access to other users
+ allow_root - allow access to root
+ nonempty - allow mount over non-empty directory
+
-->
<usmbconfig>
@@ -37,6 +48,7 @@
<server>winbox</server>
<share>music</share>
<mountpoint>/tmp/music</mountpoint>
+ <options>allow_root</options>
</mount>
</usmbconfig>
diff --git a/sax.c b/sax.c
@@ -598,7 +598,7 @@ static void end_element (void *ctx, const xmlChar *name)
{ .from = SERVER, .on = ELT_SERVER, .to = MOUNT, .fn = NULL },
{ .from = SHARE, .on = ELT_SHARE, .to = MOUNT, .fn = NULL },
{ .from = MOUNTPT, .on = ELT_MOUNTPT, .to = MOUNT, .fn = NULL },
- { .from = OPTIONS, .on = ELT_OPTIONS, .to = OPTIONS, .fn = NULL },
+ { .from = OPTIONS, .on = ELT_OPTIONS, .to = MOUNT, .fn = NULL },
{ .from = DOMAIN, .on = ELT_DOMAIN, .to = CREDS, .fn = NULL },
{ .from = USER, .on = ELT_USER, .to = CREDS, .fn = NULL },
{ .from = PASS, .on = ELT_PASS, .to = CREDS, .fn = NULL }
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.