]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: fix typos
authorKarel Zak <kzak@redhat.com>
Wed, 12 Dec 2012 20:01:32 +0000 (21:01 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 12 Dec 2012 20:02:11 +0000 (21:02 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/utils.c

index 325e1e9db037b93de3837cabc6829a20119d3f01..bfd2fff2a9a12ead9eadbe7291d8fd6fe4ff018f 100644 (file)
@@ -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;