# e.g. "MAC_ROMAN", "MAC_CYRILLIC"
#
# perm -> default permission value OR with the client requested perm
+# dperm -> default permission value for directories OR with the client
+# requested perm
+# fperm -> default permission value for filesOR with the client
+# requested perm
+
#
# miscellaneous options [syntax: options:option1,option2]:
# prodos -> make compatible with appleII clients.
/*
- * $Id: volume.c,v 1.51.2.7.2.33.2.21 2009-01-30 04:58:52 didg Exp $
+ * $Id: volume.c,v 1.51.2.7.2.33.2.22 2009-02-01 07:00:12 didg Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
} else if (optionok(tmp, "umask:", val)) {
options[VOLOPT_UMASK].i_value = (int)strtol(val +1, NULL, 8);
- } else if (optionok(tmp, "perm:", val)) {
- options[VOLOPT_DFLTPERM].i_value = (int)strtol(val+1, NULL, 8);
} else if (optionok(tmp, "dperm:", val)) {
options[VOLOPT_DPERM].i_value = (int)strtol(val+1, NULL, 8);
} else if (optionok(tmp, "fperm:", val)) {
options[VOLOPT_FPERM].i_value = (int)strtol(val+1, NULL, 8);
+ } else if (optionok(tmp, "perm:", val)) {
+ options[VOLOPT_DFLTPERM].i_value = (int)strtol(val+1, NULL, 8);
} else if (optionok(tmp, "mapchars:",val)) {
setoption(options, save, VOLOPT_MAPCHARS, val);
volume->v_umask = (mode_t)options[VOLOPT_UMASK].i_value;
if (options[VOLOPT_DPERM].i_value)
+ volume->v_dperm = (mode_t)options[VOLOPT_DPERM].i_value;
+
+ if (options[VOLOPT_FPERM].i_value)
+ volume->v_fperm = (mode_t)options[VOLOPT_FPERM].i_value;
if (options[VOLOPT_DFLTPERM].i_value)
volume->v_perm = (mode_t)options[VOLOPT_DFLTPERM].i_value;