summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Zak2012-12-12 21:01:32 +0100
committerKarel Zak2012-12-12 21:02:11 +0100
commit51479069e1e9ffa5e6befa9a612bc8797fcfcd80 (patch)
tree9bf1b09d354d5b7df48ba77e7507dea5892d46fc
parentblkid: fix double free [coverity scan] (diff)
downloadkernel-qcow2-util-linux-51479069e1e9ffa5e6befa9a612bc8797fcfcd80.tar.gz
kernel-qcow2-util-linux-51479069e1e9ffa5e6befa9a612bc8797fcfcd80.tar.xz
kernel-qcow2-util-linux-51479069e1e9ffa5e6befa9a612bc8797fcfcd80.zip
libmount: fix typos
Signed-off-by: Karel Zak <kzak@redhat.com>
-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;