Diff of /trunk/mkinitrd-magellan/busybox/libbb/concat_subpath_file.c
Parent Directory | Revision Log | Patch
revision 815 by niro, Sat Sep 1 22:45:15 2007 UTC | revision 816 by niro, Fri Apr 24 18:33:46 2009 UTC | |
---|---|---|
# | Line 15 | Line 15 |
15 | ||
16 | #include "libbb.h" | #include "libbb.h" |
17 | ||
18 | char *concat_subpath_file(const char *path, const char *f) | char* FAST_FUNC concat_subpath_file(const char *path, const char *f) |
19 | { | { |
20 | if (f && *f == '.' && (!f[1] || (f[1] == '.' && !f[2]))) | if (f && DOT_OR_DOTDOT(f)) |
21 | return NULL; | return NULL; |
22 | return concat_path_file(path, f); | return concat_path_file(path, f); |
23 | } | } |
|