diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-04-14 07:03:20 +0200 |
---|---|---|
committer | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-04-20 19:14:06 +0200 |
commit | 5ed8d3d00c6e71174a257c2bd6df901a5bde1c22 (patch) | |
tree | 93cca9c4bd01cd2d6731fe5dac13e25170dd0f5f /libbb | |
parent | ca46d5097f6124489fbd3d6b45290c2c9b643831 (diff) | |
download | busybox-w32-5ed8d3d00c6e71174a257c2bd6df901a5bde1c22.tar.gz busybox-w32-5ed8d3d00c6e71174a257c2bd6df901a5bde1c22.tar.bz2 busybox-w32-5ed8d3d00c6e71174a257c2bd6df901a5bde1c22.zip |
win32: add get_busybox_exec_path(), which is bb_busybox_exec_path
This function will become bb_busybox_exec_path because there is no
fixed installation location on Windows.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/messages.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libbb/messages.c b/libbb/messages.c index 07b522bf4..ffa8d00cd 100644 --- a/libbb/messages.c +++ b/libbb/messages.c | |||
@@ -44,7 +44,11 @@ const char bb_path_group_file[] ALIGN1 = "/etc/group"; | |||
44 | const char bb_path_gshadow_file[] ALIGN1 = "/etc/gshadow"; | 44 | const char bb_path_gshadow_file[] ALIGN1 = "/etc/gshadow"; |
45 | const char bb_path_motd_file[] ALIGN1 = "/etc/motd"; | 45 | const char bb_path_motd_file[] ALIGN1 = "/etc/motd"; |
46 | const char bb_dev_null[] ALIGN1 = "/dev/null"; | 46 | const char bb_dev_null[] ALIGN1 = "/dev/null"; |
47 | #if ENABLE_PLATFORM_MINGW32 | ||
48 | /* bb_busybox_exec_path is redefined to get_busybox_exec_path() in libbb.h */ | ||
49 | #else | ||
47 | const char bb_busybox_exec_path[] ALIGN1 = CONFIG_BUSYBOX_EXEC_PATH; | 50 | const char bb_busybox_exec_path[] ALIGN1 = CONFIG_BUSYBOX_EXEC_PATH; |
51 | #endif | ||
48 | const char bb_default_login_shell[] ALIGN1 = LIBBB_DEFAULT_LOGIN_SHELL; | 52 | const char bb_default_login_shell[] ALIGN1 = LIBBB_DEFAULT_LOGIN_SHELL; |
49 | /* util-linux manpage says /sbin:/bin:/usr/sbin:/usr/bin, | 53 | /* util-linux manpage says /sbin:/bin:/usr/sbin:/usr/bin, |
50 | * but I want to save a few bytes here. Check libbb.h before changing! */ | 54 | * but I want to save a few bytes here. Check libbb.h before changing! */ |