diff options
author | Max Kellermann <max@duempel.org> | 2013-10-14 22:26:23 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-14 22:26:23 +0200 |
commit | 47d655ea7f0ed9c26ceba4767ef6aa82e434d129 (patch) | |
tree | e27837fa66d1baffd5bdd35abd7e4987779b3513 /src/UpdateWalk.cxx | |
parent | 62271bf6ce52804a944bf33d45cdab9fac37f93c (diff) | |
download | mpd-47d655ea7f0ed9c26ceba4767ef6aa82e434d129.tar.gz mpd-47d655ea7f0ed9c26ceba4767ef6aa82e434d129.tar.xz mpd-47d655ea7f0ed9c26ceba4767ef6aa82e434d129.zip |
fs/Path: add separator constants/functions
Diffstat (limited to 'src/UpdateWalk.cxx')
-rw-r--r-- | src/UpdateWalk.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/UpdateWalk.cxx b/src/UpdateWalk.cxx index cfa68dcf4..d7dfd3015 100644 --- a/src/UpdateWalk.cxx +++ b/src/UpdateWalk.cxx @@ -306,7 +306,7 @@ skip_symlink(const Directory *directory, const char *utf8_name) const char *p = target_str; while (*p == '.') { - if (p[1] == '.' && G_IS_DIR_SEPARATOR(p[2])) { + if (p[1] == '.' && Path::IsSeparatorFS(p[2])) { /* "../" moves to parent directory */ directory = directory->parent; if (directory == NULL) { @@ -316,7 +316,7 @@ skip_symlink(const Directory *directory, const char *utf8_name) return !follow_outside_symlinks; } p += 3; - } else if (G_IS_DIR_SEPARATOR(p[1])) + } else if (Path::IsSeparatorFS(p[1])) /* eliminate "./" */ p += 2; else |