chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
util: unify how we parse mode_t strings
[elogind.git]
/
src
/
shared
/
util.h
diff --git
a/src/shared/util.h
b/src/shared/util.h
index 00e33f049258ab79fbdab21ba2607e6d825a9f5a..dc2611fa6df3c3001ad615362ea283f5f1baae5b 100644
(file)
--- a/
src/shared/util.h
+++ b/
src/shared/util.h
@@
-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);