]> 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:01:32 +0000 (21:01 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/utils.c

index 9d294b59910861df076b05c0a7f377344cf365fe..ddf953e275d88b17f98281cc5579161c7f651711 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;