]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Fixed missing include of smbw.h.
authorJeremy Allison <jra@samba.org>
Fri, 11 Dec 1998 20:50:16 +0000 (20:50 +0000)
committerJeremy Allison <jra@samba.org>
Fri, 11 Dec 1998 20:50:16 +0000 (20:50 +0000)
Added strerror print for initgroups fail.
Jeremy.

source/configure
source/configure.in
source/smbd/password.c

index 3a62298cbb436867892c46179cf21b4e3a090772..a2d52d17fe6cdc67d15098dbb99d963906b1326f 100755 (executable)
@@ -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"
index 3900f4e5916f1f4afaff9ad54bc4aa54ae029513..7df1bd4181783bb682284f5cbe82d9832092003a 100644 (file)
@@ -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
index 50a0ebd79e025a6cc03368f92c9e56936f738704..9bbd1b4b26356db8235aa4a92529074273a3ff14 100644 (file)
@@ -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));
                        }