]> git.pld-linux.org Git - packages/dbus.git/commitdiff
https://bugs.freedesktop.org/show_bug.cgi?id=11876
authorJan Rękorajski <baggins@pld-linux.org>
Thu, 25 Oct 2007 22:46:34 +0000 (22:46 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dbus-geteuid.patch -> 1.1

dbus-geteuid.patch [new file with mode: 0644]

diff --git a/dbus-geteuid.patch b/dbus-geteuid.patch
new file mode 100644 (file)
index 0000000..3f1b9ae
--- /dev/null
@@ -0,0 +1,39 @@
+diff -ur dbus-ORIG/dbus/dbus-sysdeps-unix.c dbus/dbus/dbus-sysdeps-unix.c
+--- dbus-ORIG/dbus/dbus-sysdeps-unix.c 2007-08-07 06:05:12.000000000 +0200
++++ dbus/dbus/dbus-sysdeps-unix.c      2007-08-07 06:46:42.000000000 +0200
+@@ -1664,7 +1664,7 @@
+ _dbus_append_user_from_current_process (DBusString *str)
+ {
+   return _dbus_string_append_uint (str,
+-                                   _dbus_getuid ());
++                                   _dbus_geteuid ());
+ }
+ /**
+@@ -1686,6 +1686,15 @@
+   return getuid ();
+ }
++/** Gets our effective UID
++ * @returns process effective UID
++ */
++dbus_uid_t
++_dbus_geteuid (void)
++{
++  return geteuid ();
++}
++
+ /**
+  * The only reason this is separate from _dbus_getpid() is to allow it
+  * on Windows for logging but not for other purposes.
+diff -ur dbus-ORIG/dbus/dbus-sysdeps-unix.h dbus/dbus/dbus-sysdeps-unix.h
+--- dbus-ORIG/dbus/dbus-sysdeps-unix.h 2007-08-07 06:05:12.000000000 +0200
++++ dbus/dbus/dbus-sysdeps-unix.h      2007-08-07 06:46:13.000000000 +0200
+@@ -121,6 +121,7 @@
+ void        _dbus_group_info_free     (DBusGroupInfo    *info);
+ dbus_uid_t    _dbus_getuid (void);
++dbus_uid_t    _dbus_geteuid (void);
+ dbus_gid_t    _dbus_getgid (void);
+ dbus_bool_t _dbus_parse_uid (const DBusString  *uid_str,
This page took 0.031017 seconds and 4 git commands to generate.