diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-04-13 23:59:52 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-04-13 23:59:52 +0000 |
commit | 16abcd90aefae8bdb9f7d80a555982dba6ca59b5 (patch) | |
tree | b7e23fd3c844849d188813323076c93105a57d4d /libbb/concat_subpath_file.c | |
parent | 334fa9bcb50df9a03288be252096750dcec14404 (diff) | |
download | busybox-w32-16abcd90aefae8bdb9f7d80a555982dba6ca59b5.tar.gz busybox-w32-16abcd90aefae8bdb9f7d80a555982dba6ca59b5.tar.bz2 busybox-w32-16abcd90aefae8bdb9f7d80a555982dba6ca59b5.zip |
teach find_root_device to deal with /dev/ subdirs
(by "Kirill K. Smirnov" <lich@math.spbu.ru>)
Diffstat (limited to 'libbb/concat_subpath_file.c')
-rw-r--r-- | libbb/concat_subpath_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/concat_subpath_file.c b/libbb/concat_subpath_file.c index 6bbe49ab5..1c0058889 100644 --- a/libbb/concat_subpath_file.c +++ b/libbb/concat_subpath_file.c | |||
@@ -17,7 +17,7 @@ | |||
17 | 17 | ||
18 | char *concat_subpath_file(const char *path, const char *f) | 18 | char *concat_subpath_file(const char *path, const char *f) |
19 | { | 19 | { |
20 | if (f && *f == '.' && (!f[1] || (f[1] == '.' && !f[2]))) | 20 | if (f && DOT_OR_DOTDOT(f)) |
21 | return NULL; | 21 | return NULL; |
22 | return concat_path_file(path, f); | 22 | return concat_path_file(path, f); |
23 | } | 23 | } |