summaryrefslogtreecommitdiff
path: root/libbb/concat_subpath_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/concat_subpath_file.c')
-rw-r--r--libbb/concat_subpath_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/concat_subpath_file.c b/libbb/concat_subpath_file.c
index 6bbe49a..1c00588 100644
--- a/libbb/concat_subpath_file.c
+++ b/libbb/concat_subpath_file.c
@@ -17,7 +17,7 @@
char *concat_subpath_file(const char *path, const char *f)
{
- if (f && *f == '.' && (!f[1] || (f[1] == '.' && !f[2])))
+ if (f && DOT_OR_DOTDOT(f))
return NULL;
return concat_path_file(path, f);
}