From cdc6099647f7a48a8e31f9dfc331fe82dd66acdf Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 3 Nov 1997 19:24:45 +0000 Subject: Rolling back the files loadparm.c : to equivalent to version 1.67 reply.c : to equivalent to version 1.69 server.c : to equivalent to version 1.122 util.c : to equivalent to version 1.98 to remove the incorrect changes. proto.h: The usual. rpc_pipes/smbparse.c : Backeting stuff that SHOULD NOT BE IN THE none-NTDOMAIN build ! Jeremy. (This used to be commit 6064c9d80fd9fcc3ceec528494ba5e2591610098) --- source3/param/loadparm.c | 154 +++++++++++++---------------------------------- 1 file changed, 42 insertions(+), 112 deletions(-) (limited to 'source3/param') diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index a798444676..2fe616f709 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -278,7 +278,6 @@ typedef struct BOOL *copymap; BOOL bDeleteReadonly; BOOL bFakeOplocks; - BOOL bOnline; BOOL bDeleteVetoFiles; BOOL bDosFiletimes; char dummy[3]; /* for alignment */ @@ -363,7 +362,6 @@ static service sDefault = NULL, /* copymap */ False, /* bDeleteReadonly */ False, /* bFakeOplocks */ - True, /* bOnline */ False, /* bDeleteVetoFiles */ False, /* bDosFiletimes */ "" /* dummy */ @@ -596,7 +594,6 @@ struct parm_struct {"magic output", P_STRING, P_LOCAL, &sDefault.szMagicOutput, NULL}, {"mangled map", P_STRING, P_LOCAL, &sDefault.szMangledMap, NULL}, {"delete readonly", P_BOOL, P_LOCAL, &sDefault.bDeleteReadonly, NULL}, - {"online", P_BOOL, P_LOCAL, &sDefault.bOnline, NULL}, {"dos filetimes", P_BOOL, P_LOCAL, &sDefault.bDosFiletimes, NULL}, {NULL, P_BOOL, P_NONE, NULL, NULL} @@ -775,108 +772,57 @@ static void init_locals(void) } - -/* chomp() strips off trailing linefeed- and carriage-return-characters */ -char *chomp(char *s) -{ - if(!s || s == NULL) -return(NULL); - - while(strlen(s) > 0) { - int i = strlen(s) - 1; - - if(s [i] == '\n' || s [i] == '\r') - s [i] = '\0'; - else - break; - } - - return(s); -} - - -/* -read_string_external(fname): depending on the first character in fname either -reads the first line of a file or of the output of a command. If the second -character is a '$' execute standard-substitutions on the string to be returned. - -examples: read_string_external("