diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-10-09 07:11:21 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:59:40 -0500 |
commit | 7b7619e0ba489329ced5f5159f97ba7da5aa3fa5 (patch) | |
tree | 3aa0339df6ff36ee2ab6388c24d8fd1471397861 /source4/param | |
parent | 6350e5cb601f64524f1ea9584cb290055ca04147 (diff) | |
download | samba-7b7619e0ba489329ced5f5159f97ba7da5aa3fa5.tar.gz samba-7b7619e0ba489329ced5f5159f97ba7da5aa3fa5.tar.bz2 samba-7b7619e0ba489329ced5f5159f97ba7da5aa3fa5.zip |
r2871: - got rid of the last bits of non-threadsafe data in util_str.o
- switch the fallback case tables to use talloc
- moved the used-once octal_string() inline in loadparm.c
(This used to be commit b04202eaacc87d264d463f75673ee0e68cd54f94)
Diffstat (limited to 'source4/param')
-rw-r--r-- | source4/param/loadparm.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c index bc5ceb00d8..1d53af5c81 100644 --- a/source4/param/loadparm.c +++ b/source4/param/loadparm.c @@ -2522,7 +2522,11 @@ static void print_parameter(struct parm_struct *p, void *ptr, FILE * f) break; case P_OCTAL: - fprintf(f, "%s", octal_string(*(int *)ptr)); + if (*(int *)ptr == -1) { + fprintf(f, "-1"); + } else { + fprintf(f, "0%o", *(int *)ptr); + } break; case P_LIST: |