diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2012-09-16 16:14:11 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2012-09-16 16:20:09 +0200 |
commit | 25ea79fe0756c3c46a16c0c19bf3380a30382a1c (patch) | |
tree | e0d7b15b00b9812120674858f8f194cd7d98facf /src/shared/util.c | |
parent | ed8b7a3ee55b27a06a54d2dfa39eec5e555e005b (diff) |
nspawn: use automatic cleanup for umask
Diffstat (limited to 'src/shared/util.c')
-rw-r--r-- | src/shared/util.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared/util.c b/src/shared/util.c index add3fdce53..27b6683393 100644 --- a/src/shared/util.c +++ b/src/shared/util.c @@ -5827,3 +5827,7 @@ void closedirp(DIR **d) { if (*d) closedir(*d); } + +void umaskp(mode_t *u) { + umask(*u); +} |