Revert "hardening: Use __secure_getenv() in *addition* to _dbus_check_setuid()"
[platform/upstream/dbus.git] / dbus / dbus-sysdeps-unix.c
index 6fa5bcb..b4ecc96 100644 (file)
@@ -3434,12 +3434,6 @@ _dbus_get_autolaunch_address (const char *scope,
   DBusString uuid;
   dbus_bool_t retval;
 
-  if (_dbus_getenv ("PATH") == NULL)
-    {
-      dbus_set_error_const (error, DBUS_ERROR_NOT_SUPPORTED,
-                            "Unable to autolaunch when PATH is unset");
-      return FALSE;
-    }
   if (_dbus_check_setuid ())
     {
       dbus_set_error_const (error, DBUS_ERROR_NOT_SUPPORTED,