param: pad permissions to 3 digits and update docs to be consistent
authorGarming Sam <garming@catalyst.net.nz>
Thu, 2 Jan 2014 23:22:19 +0000 (12:22 +1300)
committerMichael Adam <obnox@samba.org>
Wed, 29 Jan 2014 23:40:22 +0000 (00:40 +0100)
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
docs-xml/smbdotconf/security/forcecreatemode.xml
docs-xml/smbdotconf/security/forcedirectorymode.xml
lib/param/loadparm.c
source3/param/loadparm.c

index 5655cd4145224e3e329eb3fdb7880fcbcadd4962..2b7f1bbc786342f16753938417261bd51749f5e7 100644 (file)
@@ -20,6 +20,6 @@
 <related>create mask</related>
 <related>inherit permissions</related>
 
-<value type="default">000</value>
+<value type="default">0000</value>
 <value type="example">0755</value>
 </samba:parameter>
index 7effc0e3999a526bfc03d0fa9d7b2cfedec39521..211ea4c2119a0da6ea8073e91c0393a0932d7f06 100644 (file)
@@ -17,7 +17,7 @@
     read/write/execute bits set for the 'user'.</para>
 </description>
 
-<value type="default">000</value>
+<value type="default">0000</value>
 <value type="example">0755</value>
 
 <related>directory mask</related>
index cf7af34f6ba36222c2df94086c0537d5ffb71854..ae9ee8f0fa7bd6fa5bd76a34ec2dbee956d1494c 100644 (file)
@@ -1665,7 +1665,7 @@ static void print_parameter(struct parm_struct *p, void *ptr, FILE * f)
                        if (val == -1) {
                                fprintf(f, "-1");
                        } else {
-                               fprintf(f, "0%o", val);
+                               fprintf(f, "0%03o", val);
                        }
                        break;
                }
index 489a21fa0cb7d7d4bf5ae3911f04052ce360a0e0..8552f37388e30f205862f9599d0b57d0525112ea 100644 (file)
@@ -3456,7 +3456,7 @@ static void print_parameter(struct parm_struct *p, void *ptr, FILE * f)
                        if (val == -1) {
                                fprintf(f, "-1");
                        } else {
-                               fprintf(f, "0%o", val);
+                               fprintf(f, "0%03o", val);
                        }
                        break;
                }