From 110196244732911d4971ef7f9e30cc2407d8034b Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 17 Mar 2015 17:34:14 -0700 Subject: [PATCH] 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 --- libc/include/paths.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/libc/include/paths.h b/libc/include/paths.h index 33c2eee1b..82c28042f 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_ */