]> xenbits.xensource.com Git - libvirt.git/commit
Use g_mkstemp_full instead of mkostemp(s)
authorJán Tomko <jtomko@redhat.com>
Wed, 13 Nov 2019 21:30:26 +0000 (22:30 +0100)
committerJán Tomko <jtomko@redhat.com>
Thu, 14 Nov 2019 18:02:31 +0000 (19:02 +0100)
commit4ac47730408eaf91683f6502ec10541f4f711a5c
tree8d127b534d890dadae3d2492572c8e595bae49d2
parentc4ae19d1ec90a9cbae6c19bb9f1779ed36901ac3
Use g_mkstemp_full instead of mkostemp(s)

With g_mkstemp_full, there is no need to distinguish between
mkostemp and mkostemps (no suffix vs. a suffix of a fixed length),
because the GLib function looks for the XXXXXX pattern everywhere
in the string.

Use S_IRUSR | S_IWUSR for the permissions and do not pass O_RDWR
in flags since it's implied.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_driver.c
src/storage/storage_driver.c
src/storage/storage_util.c
src/util/virlog.c
src/vbox/vbox_common.c
tests/virfiletest.c
tools/vsh.c