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/lib/util.c | 68 +++++++++++++++++++++++++++++------------------------- 1 file changed, 36 insertions(+), 32 deletions(-) (limited to 'source3/lib/util.c') 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