util: move filename_is_valid() and path_is_safe() to path-util.[ch]

This commit is contained in:
Lennart Poettering
2015-10-27 13:25:55 +01:00
parent 4349cd7c1d
commit bb15fafe9c
13 changed files with 66 additions and 54 deletions
-2
View File
@@ -303,8 +303,6 @@ _alloc_(2, 3) static inline void *memdup_multiply(const void *p, size_t a, size_
return memdup(p, a * b);
}
bool filename_is_valid(const char *p) _pure_;
bool path_is_safe(const char *p) _pure_;
bool string_is_safe(const char *p) _pure_;
/**