From 2c6f0fa5101f6d2d46f799e3060930d2eb1f53f8 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 15 Nov 2001 21:50:29 +0000 Subject: Tidyups in the merge process. Jeremy. (This used to be commit a7b45bfb713adaaad0dca3dc13139ee5a909a383) --- source3/Makefile.in | 3 +-- source3/lib/util.c | 68 ++++++++++++++++++++++++++++------------------------- 2 files changed, 37 insertions(+), 34 deletions(-) diff --git a/source3/Makefile.in b/source3/Makefile.in index bf54be896a..d91cc1c676 100644 --- a/source3/Makefile.in +++ b/source3/Makefile.in @@ -158,8 +158,7 @@ RPC_PARSE_OBJ = rpc_parse/parse_lsa.o rpc_parse/parse_net.o \ rpc_parse/parse_reg.o rpc_parse/parse_rpc.o \ rpc_parse/parse_samr.o rpc_parse/parse_srv.o \ rpc_parse/parse_wks.o \ - rpc_parse/parse_spoolss.o rpc_parse/parse_dfs.o \ - rpc_parse/parse_creds.o + rpc_parse/parse_spoolss.o rpc_parse/parse_dfs.o RPC_CLIENT_OBJ = rpc_client/cli_netlogon.o rpc_client/cli_pipe.o \ diff --git a/source3/lib/util.c b/source3/lib/util.c index 02397dd4c4..81e30aa8e3 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -93,26 +93,26 @@ char **my_netbios_names; /**************************************************************************** find a suitable temporary directory. The result should be copied immediately - as it may be overwritten by a subsequent call + as it may be overwritten by a subsequent call. ****************************************************************************/ char *tmpdir(void) { char *p; - if ((p = getenv("TMPDIR"))) { + if ((p = getenv("TMPDIR"))) return p; - } return "/tmp"; } /**************************************************************************** -determine whether we are in the specified group + Determine whether we are in the specified group. ****************************************************************************/ BOOL in_group(gid_t group, gid_t current_gid, int ngroups, gid_t *groups) { int i; - if (group == current_gid) return(True); + if (group == current_gid) + return(True); for (i=0;i