OSDN Git Service

Fix _PATH_DEFPATH to correspond to the actual default path.
authorElliott Hughes <enh@google.com>
Wed, 18 Mar 2015 00:34:14 +0000 (17:34 -0700)
committerElliott Hughes <enh@google.com>
Wed, 18 Mar 2015 00:34:14 +0000 (17:34 -0700)
This is currently set in init.rc, but I plan on making init
set PATH to _PATH_DEFPATH and removing the line from init.rc...

Bug: 19564110
Change-Id: Ifa7226a3a5a90d141a788d7d6b1ae86245674218

libc/include/paths.h

index 33c2eee..82c2804 100644 (file)
 #ifndef _PATHS_H_
 #define        _PATHS_H_
 
-/* Default search path. */
-#define        _PATH_DEFPATH   "/system/bin:/system/xbin"
-
 #define        _PATH_BSHELL    "/system/bin/sh"
 #define        _PATH_CONSOLE   "/dev/console"
+#define        _PATH_DEFPATH   "/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin"
+#define        _PATH_DEV       "/dev/"
 #define        _PATH_DEVNULL   "/dev/null"
 #define        _PATH_KLOG      "/proc/kmsg"
-
 #define        _PATH_MOUNTED   "/proc/mounts"
 #define        _PATH_TTY       "/dev/tty"
 
-/* Provide trailing slash, since mostly used for building pathnames. */
-#define        _PATH_DEV       "/dev/"
-
 #endif /* !_PATHS_H_ */