diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-04-14 00:34:54 +0200 |
---|---|---|
committer | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-04-20 19:14:38 +0200 |
commit | ceef077aea62b57e8d97bbdc4f16a045236907e3 (patch) | |
tree | 3393bd4a7c05c13158436b109487980a39e3730e /shell | |
parent | 0471735e3429363346b5f13844335142a26aa0d0 (diff) | |
download | busybox-w32-ceef077aea62b57e8d97bbdc4f16a045236907e3.tar.gz busybox-w32-ceef077aea62b57e8d97bbdc4f16a045236907e3.tar.bz2 busybox-w32-ceef077aea62b57e8d97bbdc4f16a045236907e3.zip |
win32: ash: is_absolute_path()
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/ash.c b/shell/ash.c index bfbd6a027..05ca74579 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -2527,7 +2527,7 @@ cdcmd(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) | |||
2527 | } | 2527 | } |
2528 | if (!dest) | 2528 | if (!dest) |
2529 | dest = nullstr; | 2529 | dest = nullstr; |
2530 | if (*dest == '/') | 2530 | if (is_absolute_path(dest)) |
2531 | goto step7; | 2531 | goto step7; |
2532 | if (*dest == '.') { | 2532 | if (*dest == '.') { |
2533 | c = dest[1]; | 2533 | c = dest[1]; |
@@ -12213,7 +12213,7 @@ find_command(char *name, struct cmdentry *entry, int act, const char *path) | |||
12213 | } | 12213 | } |
12214 | } | 12214 | } |
12215 | /* if rehash, don't redo absolute path names */ | 12215 | /* if rehash, don't redo absolute path names */ |
12216 | if (fullname[0] == '/' && idx <= prev) { | 12216 | if (is_absolute_path(fullname) && idx <= prev) { |
12217 | if (idx < prev) | 12217 | if (idx < prev) |
12218 | continue; | 12218 | continue; |
12219 | TRACE(("searchexec \"%s\": no change\n", name)); | 12219 | TRACE(("searchexec \"%s\": no change\n", name)); |