summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2003-05-03 20:53:40 +0000
committerColin Walters <walters@verbum.org>2003-05-03 20:53:40 +0000
commit6c013f3be1c2a48b82a4e8b92ce2163e3770c908 (patch)
tree806f3ca4c12e338a865bd2b1034c3401f83cb651
parent6fae526d097c3f85b773631125fba56540aabde1 (diff)
2003-05-03 Colin Walters <walters@verbum.org>
* dbus/dbus-sysdeps.c (fill_user_info): Test against DBUS_UID_UNSET to determine whether to do a uid lookup or not. * Makefile.am: Update to use new .pc versioning scheme.
-rw-r--r--ChangeLog7
-rw-r--r--Makefile.am12
-rw-r--r--dbus/dbus-sysdeps.c10
3 files changed, 21 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index 38eb5918..31417b9b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2003-05-03 Colin Walters <walters@verbum.org>
+
+ * dbus/dbus-sysdeps.c (fill_user_info): Test against
+ DBUS_UID_UNSET to determine whether to do a uid lookup or not.
+
+ * Makefile.am: Update to use new .pc versioning scheme.
+
2003-05-02 Havoc Pennington <hp@redhat.com>
* bus/system.conf.in: allow send/receive to/from message bus
diff --git a/Makefile.am b/Makefile.am
index 91c976e8..628b69e9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,7 +1,7 @@
if HAVE_GLIB
GLIB_SUBDIR=glib
- GLIB_PC=dbus-glib-1.0.pc
+ GLIB_PC=dbus-glib-1.pc
endif
if HAVE_QT
@@ -11,16 +11,16 @@ endif
SUBDIRS=dbus bus test doc $(GLIB_SUBDIR) $(QT_SUBDIR) tools
pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = dbus-1.0.pc $(GLIB_PC)
+pkgconfig_DATA = dbus-1.pc $(GLIB_PC)
DISTCLEANFILES = \
- dbus-1.0.pc \
+ dbus-1.pc \
$(GLIB_PC)
EXTRA_DIST = \
HACKING \
- dbus-1.0.pc.in \
- dbus-glib-1.0.pc.in
+ dbus-1.pc.in \
+ dbus-glib-1.pc.in
all-local: Doxyfile
@@ -61,4 +61,4 @@ coverage-report.txt:
check-coverage:
echo "Need to reconfigure with --enable-gcov"
-endif \ No newline at end of file
+endif
diff --git a/dbus/dbus-sysdeps.c b/dbus/dbus-sysdeps.c
index 7673085f..d59498b1 100644
--- a/dbus/dbus-sysdeps.c
+++ b/dbus/dbus-sysdeps.c
@@ -1378,7 +1378,7 @@ fill_user_info (DBusUserInfo *info,
result = getpwnam_r (username_c, &p_str, buf, sizeof (buf),
&p);
#else
- if (uid >= 0)
+ if (uid != DBUS_UID_UNSET)
p = getpwuid_r (uid, &p_str, buf, sizeof (buf));
else
p = getpwnam_r (username_c, &p_str, buf, sizeof (buf));
@@ -1403,7 +1403,7 @@ fill_user_info (DBusUserInfo *info,
/* I guess we're screwed on thread safety here */
struct passwd *p;
- if (uid >= 0)
+ if (uid != DBUS_UID_UNSET)
p = getpwuid (uid);
else
p = getpwnam (username_c);
@@ -3047,6 +3047,12 @@ _dbus_become_daemon (const DBusString *pidfile,
break;
case 0:
+
+
+ s = _dbus_getenv ("DBUS_DEBUG_DAEMONIZE");
+ if (s != NULL)
+ kill (_dbus_getpid (), SIGSTOP);
+
s = _dbus_getenv ("DBUS_DEBUG_OUTPUT");
if (s == NULL || *s == '\0')
{