diff options
author | Elliott Hughes <enh@google.com> | 2015-03-17 17:34:14 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2015-03-17 17:34:14 -0700 |
commit | 110196244732911d4971ef7f9e30cc2407d8034b (patch) | |
tree | 36f3963097eef27d25d924ea918f51c4469a4cc8 | |
parent | 5f8ddf69e59b13653d016e236599b95daf6501a8 (diff) | |
download | bionic-110196244732911d4971ef7f9e30cc2407d8034b.zip bionic-110196244732911d4971ef7f9e30cc2407d8034b.tar.gz bionic-110196244732911d4971ef7f9e30cc2407d8034b.tar.bz2 |
Fix _PATH_DEFPATH to correspond to the actual default path.
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
-rw-r--r-- | libc/include/paths.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libc/include/paths.h b/libc/include/paths.h index 33c2eee..82c2804 100644 --- a/libc/include/paths.h +++ b/libc/include/paths.h @@ -32,18 +32,13 @@ #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_ */ |