[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r4092 - in GNUnet: . src/util/os
From: |
grothoff |
Subject: |
[GNUnet-SVN] r4092 - in GNUnet: . src/util/os |
Date: |
Thu, 28 Dec 2006 20:32:15 -0800 (PST) |
Author: grothoff
Date: 2006-12-28 20:32:13 -0800 (Thu, 28 Dec 2006)
New Revision: 4092
Modified:
GNUnet/AUTHORS
GNUnet/configure.ac
GNUnet/src/util/os/user.c
Log:
fixing Mantis 1162
Modified: GNUnet/AUTHORS
===================================================================
--- GNUnet/AUTHORS 2006-12-29 04:27:38 UTC (rev 4091)
+++ GNUnet/AUTHORS 2006-12-29 04:32:13 UTC (rev 4092)
@@ -8,6 +8,7 @@
Andrew McDonald <address@hidden> [ SHA-512]
Antti Salonen
Blake Matheny <address@hidden>
+Enrico Scholz <address@hidden>
Eric Haumant
Eric Noack <address@hidden>
Felix von Leitner [ diet libc snprintf for win32 ]
Modified: GNUnet/configure.ac
===================================================================
--- GNUnet/configure.ac 2006-12-29 04:27:38 UTC (rev 4091)
+++ GNUnet/configure.ac 2006-12-29 04:32:13 UTC (rev 4092)
@@ -457,7 +457,7 @@
AC_HEADER_SYS_WAIT
AC_TYPE_OFF_T
AC_TYPE_UID_T
-AC_CHECK_FUNCS([floor gethostname memmove rmdir strncasecmp strrchr strtol
atoll dup2 fdatasync ftruncate gethostbyname gettimeofday memset mkdir mkfifo
select socket strcasecmp strchr strdup strerror strstr clock_gettime getrusage
rand uname setlocale getcwd mktime gmtime_r gmtime strlcpy strlcat ftruncate
stat64 sbrk mmap mremap setrlimit gethostbyaddr])
+AC_CHECK_FUNCS([floor gethostname memmove rmdir strncasecmp strrchr strtol
atoll dup2 fdatasync ftruncate gethostbyname gettimeofday memset mkdir mkfifo
select socket strcasecmp strchr strdup strerror strstr clock_gettime getrusage
rand uname setlocale getcwd mktime gmtime_r gmtime strlcpy strlcat ftruncate
stat64 sbrk mmap mremap setrlimit gethostbyaddr initgroups])
# restore LIBS
LIBS=$SAVE_LIBS
Modified: GNUnet/src/util/os/user.c
===================================================================
--- GNUnet/src/util/os/user.c 2006-12-29 04:27:38 UTC (rev 4091)
+++ GNUnet/src/util/os/user.c 2006-12-29 04:32:13 UTC (rev 4092)
@@ -127,6 +127,9 @@
}
if((0 != setgid(pws->pw_gid)) ||
(0 != setegid(pws->pw_gid)) ||
+#if HAVE_INITGROUPS
+ (0 != initgroups(user, pws->pw_gid)) ||
+#endif
(0 != setuid(pws->pw_uid)) || (0 != seteuid(pws->pw_uid))) {
if((0 != setregid(pws->pw_gid, pws->pw_gid)) ||
(0 != setreuid(pws->pw_uid, pws->pw_uid))) {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r4092 - in GNUnet: . src/util/os,
grothoff <=