From 7b7619e0ba489329ced5f5159f97ba7da5aa3fa5 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 9 Oct 2004 07:11:21 +0000 Subject: 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) --- source4/param/loadparm.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source4/param') 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: -- cgit