summaryrefslogtreecommitdiff
path: root/src/shared/macro.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2012-09-16 16:14:11 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2012-09-16 16:20:09 +0200
commit25ea79fe0756c3c46a16c0c19bf3380a30382a1c (patch)
treee0d7b15b00b9812120674858f8f194cd7d98facf /src/shared/macro.h
parented8b7a3ee55b27a06a54d2dfa39eec5e555e005b (diff)
nspawn: use automatic cleanup for umask
Diffstat (limited to 'src/shared/macro.h')
-rw-r--r--src/shared/macro.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/macro.h b/src/shared/macro.h
index f8c5656538..c7ce7c87d0 100644
--- a/src/shared/macro.h
+++ b/src/shared/macro.h
@@ -191,5 +191,6 @@ static inline size_t IOVEC_INCREMENT(struct iovec *i, unsigned n, size_t k) {
#define _cleanup_fclose_ __attribute__((cleanup(fclosep)))
#define _cleanup_close_ __attribute__((cleanup(closep)))
#define _cleanup_closedir_ __attribute__((cleanup(closedirp)))
+#define _cleanup_umask_ __attribute__((cleanup(umaskp)))
#include "log.h"