summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libmount/src/utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libmount/src/utils.c b/libmount/src/utils.c
index 325e1e9db..bfd2fff2a 100644
--- a/libmount/src/utils.c
+++ b/libmount/src/utils.c
@@ -824,10 +824,10 @@ int mnt_open_uniq_filename(const char *filename, char **name)
/* This is for very old glibc and for compatibility with Posix where is
* nothing about mkstemp() mode. All sane glibc use secure mode (0600).
*/
- oldmode = umask(S_IRGRP|S_IWGRP|S_IXGRP
- S_IROTH|S_IWOTH|S_IXOTH)
+ oldmode = umask(S_IRGRP|S_IWGRP|S_IXGRP|
+ S_IROTH|S_IWOTH|S_IXOTH);
fd = mkstemp(n);
- umask(oldmask);
+ umask(oldmode);
if (fd >= 0 && name)
*name = n;