summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-12-11 20:50:16 +0000
committerJeremy Allison <jra@samba.org>1998-12-11 20:50:16 +0000
commitd45be1540395d5245395e753a8a1d83937c6667f (patch)
tree511d3394dbe3b0dc35548b37d126396ab34c25c8
parent7fe4baa44270bf4b51353925a894da1f377ad4c3 (diff)
downloadsamba-d45be1540395d5245395e753a8a1d83937c6667f.tar.gz
samba-d45be1540395d5245395e753a8a1d83937c6667f.tar.xz
samba-d45be1540395d5245395e753a8a1d83937c6667f.zip
Fixed missing include of smbw.h.
Added strerror print for initgroups fail. Jeremy.
-rwxr-xr-xsource/configure2
-rw-r--r--source/configure.in2
-rw-r--r--source/smbd/password.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/source/configure b/source/configure
index 3a62298cbb4..a2d52d17fe6 100755
--- a/source/configure
+++ b/source/configure
@@ -7816,7 +7816,7 @@ if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
else
SAVE_CPPFLAGS="$CPPFLAGS"
-CPPFLAGS="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx"
+CPPFLAGS="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
cat > conftest.$ac_ext <<EOF
#line 7822 "configure"
#include "confdefs.h"
diff --git a/source/configure.in b/source/configure.in
index 3900f4e5916..7df1bd41817 100644
--- a/source/configure.in
+++ b/source/configure.in
@@ -670,7 +670,7 @@ fi
AC_CACHE_CHECK([whether getpass should be replaced],samba_cv_REPLACE_GETPASS,[
SAVE_CPPFLAGS="$CPPFLAGS"
-CPPFLAGS="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx"
+CPPFLAGS="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
AC_TRY_COMPILE([
#define REPLACE_GETPASS 1
#define NO_CONFIG_H 1
diff --git a/source/smbd/password.c b/source/smbd/password.c
index 50a0ebd79e0..9bbd1b4b263 100644
--- a/source/smbd/password.c
+++ b/source/smbd/password.c
@@ -161,10 +161,10 @@ int setup_groups(char *user, uid_t uid, gid_t gid, int *p_ngroups, gid_t **p_gro
if (-1 == initgroups(user,gid))
{
+ DEBUG(0,("Unable to initgroups. Error was %s\n", strerror(errno) ));
if (getuid() == 0)
{
- DEBUG(0,("Unable to initgroups!\n"));
- if (gid < 0 || gid > 16000 || uid < 0 || uid > 16000)
+ if (gid < 0 || gid > 32767 || uid < 0 || uid > 32767)
{
DEBUG(0,("This is probably a problem with the account %s\n", user));
}