]> git.pld-linux.org Git - packages/dbus.git/blame - dbus-geteuid.patch
- rel 3
[packages/dbus.git] / dbus-geteuid.patch
CommitLineData
b30b6df9
JR
1diff -ur dbus-ORIG/dbus/dbus-sysdeps-unix.c dbus/dbus/dbus-sysdeps-unix.c
2--- dbus-ORIG/dbus/dbus-sysdeps-unix.c 2007-08-07 06:05:12.000000000 +0200
3+++ dbus/dbus/dbus-sysdeps-unix.c 2007-08-07 06:46:42.000000000 +0200
4@@ -1664,7 +1664,7 @@
5 _dbus_append_user_from_current_process (DBusString *str)
6 {
7 return _dbus_string_append_uint (str,
8- _dbus_getuid ());
9+ _dbus_geteuid ());
10 }
11
12 /**
13@@ -1686,6 +1686,15 @@
14 return getuid ();
15 }
16
17+/** Gets our effective UID
18+ * @returns process effective UID
19+ */
20+dbus_uid_t
21+_dbus_geteuid (void)
22+{
23+ return geteuid ();
24+}
25+
26 /**
27 * The only reason this is separate from _dbus_getpid() is to allow it
28 * on Windows for logging but not for other purposes.
29diff -ur dbus-ORIG/dbus/dbus-sysdeps-unix.h dbus/dbus/dbus-sysdeps-unix.h
30--- dbus-ORIG/dbus/dbus-sysdeps-unix.h 2007-08-07 06:05:12.000000000 +0200
31+++ dbus/dbus/dbus-sysdeps-unix.h 2007-08-07 06:46:13.000000000 +0200
32@@ -121,6 +121,7 @@
33 void _dbus_group_info_free (DBusGroupInfo *info);
34
35 dbus_uid_t _dbus_getuid (void);
36+dbus_uid_t _dbus_geteuid (void);
37 dbus_gid_t _dbus_getgid (void);
38
39 dbus_bool_t _dbus_parse_uid (const DBusString *uid_str,
This page took 0.056549 seconds and 4 git commands to generate.