diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2008-08-21 21:27:42 +0200 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2008-08-21 21:27:42 +0200 |
| commit | 0694e2e0cf951049b5c268e359c35158277cf7c2 (patch) | |
| tree | 8986ebab3f3b21509cef72e1581e1e4d7fa16303 /common/strutils.h | |
| parent | c6db81b5e20f62e8a5d24373d73b19d519b2fa44 (diff) | |
| download | tuxcmd-modules-0694e2e0cf951049b5c268e359c35158277cf7c2.tar.xz | |
Always canonicalize paths when adding items (avoid blank directory names)
Diffstat (limited to 'common/strutils.h')
| -rw-r--r-- | common/strutils.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/strutils.h b/common/strutils.h index 95cc16b..872365c 100644 --- a/common/strutils.h +++ b/common/strutils.h @@ -26,11 +26,11 @@ #include <stdlib.h> -#ifdef __VERBOSE_DEBUG +#ifdef __VERBOSE_DEBUG #define log(msg...) printf(msg) #else #define log(msg...) { } -#endif +#endif #define IS_DIR_SEP(ch) ((ch) == '/') @@ -44,6 +44,7 @@ char* exclude_leading_path_sep(const char *APath); char* extract_file_name(const char *APath); char* extract_file_path(const char *APath); char* resolve_relative(const char *source, const char *point_to); +char* canonicalize_filename(const char *filename); #endif /* __STRUTILS_H__ */ |
