diff options
author | Karel Zak | 2012-12-12 21:01:32 +0100 |
---|---|---|
committer | Karel Zak | 2012-12-12 21:02:11 +0100 |
commit | 51479069e1e9ffa5e6befa9a612bc8797fcfcd80 (patch) | |
tree | 9bf1b09d354d5b7df48ba77e7507dea5892d46fc | |
parent | blkid: fix double free [coverity scan] (diff) | |
download | kernel-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.c | 6 |
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; |