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-09-10 18:40:34 +1000 |
commit | 292c51299c94985316049c2b2ad7727e33f8faf1 (patch) | |
tree | 8d4801af40c6de39cf791b39acd935e09ff6d3b9 /libbb | |
parent | 4fc9774cb660ea99f90466c4253413447e23e2d0 (diff) | |
download | busybox-w32-292c51299c94985316049c2b2ad7727e33f8faf1.tar.gz busybox-w32-292c51299c94985316049c2b2ad7727e33f8faf1.tar.bz2 busybox-w32-292c51299c94985316049c2b2ad7727e33f8faf1.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.
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! */ |