aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-04-14 07:03:20 +0200
committerNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-04-20 19:14:06 +0200
commit5ed8d3d00c6e71174a257c2bd6df901a5bde1c22 (patch)
tree93cca9c4bd01cd2d6731fe5dac13e25170dd0f5f /libbb
parentca46d5097f6124489fbd3d6b45290c2c9b643831 (diff)
downloadbusybox-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.c4
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";
44const char bb_path_gshadow_file[] ALIGN1 = "/etc/gshadow"; 44const char bb_path_gshadow_file[] ALIGN1 = "/etc/gshadow";
45const char bb_path_motd_file[] ALIGN1 = "/etc/motd"; 45const char bb_path_motd_file[] ALIGN1 = "/etc/motd";
46const char bb_dev_null[] ALIGN1 = "/dev/null"; 46const 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
47const char bb_busybox_exec_path[] ALIGN1 = CONFIG_BUSYBOX_EXEC_PATH; 50const char bb_busybox_exec_path[] ALIGN1 = CONFIG_BUSYBOX_EXEC_PATH;
51#endif
48const char bb_default_login_shell[] ALIGN1 = LIBBB_DEFAULT_LOGIN_SHELL; 52const 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! */