]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: Save errno if mkostemp() failed
authorNamhyung Kim <namhyung@gmail.com>
Sun, 29 Sep 2013 10:11:37 +0000 (19:11 +0900)
committerKarel Zak <kzak@redhat.com>
Mon, 30 Sep 2013 11:41:12 +0000 (13:41 +0200)
commit1dbaf5cc72a7af5a2ee4692366a74acb960203fe
tree35624edcfdbceda84d3ef0f48856eb13af10d59e
parent0b567ae5507f8e990452024ffe561457203b627b
libmount: Save errno if mkostemp() failed

After mkostemp() failed, umask() and free() might alter the errno
to another value.  Not sure those calls really changes the errno
or not.  But let's be more conservative.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
libmount/src/utils.c