chiark / gitweb /
nspawn: use automatic cleanup for umask
[elogind.git] / src / shared / macro.h
index f8c5656538ac9c41f341f4dabaffd73cca74feec..c7ce7c87d096079fdc1ff0f6c3a60582a2407197 100644 (file)
@@ -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"