chiark / gitweb /
util: unify how we parse mode_t strings
[elogind.git] / src / shared / util.h
index 00e33f049258ab79fbdab21ba2607e6d825a9f5a..dc2611fa6df3c3001ad615362ea283f5f1baae5b 100644 (file)
@@ -1088,3 +1088,5 @@ void cmsg_close_all(struct msghdr *mh);
 int rename_noreplace(int olddirfd, const char *oldpath, int newdirfd, const char *newpath);
 
 char *shell_maybe_quote(const char *s);
+
+int parse_mode(const char *s, mode_t *ret);