]> git.proxmox.com Git - qemu.git/commit - util/osdep.c
osdep: Less restrictive F_SEFL in qemu_dup_flags()
authorCorey Bryant <coreyb@linux.vnet.ibm.com>
Thu, 18 Oct 2012 20:41:04 +0000 (16:41 -0400)
committerKevin Wolf <kwolf@redhat.com>
Wed, 24 Oct 2012 08:26:22 +0000 (10:26 +0200)
commit3b6eda2f57a5b7ed047077b6272c2b5a9e3531ca
tree89fbc3809331fa2c8c50c70a6b4589e25031437b
parent9dfa9f593045d70572ebfd94f59cd33ec99e847c
osdep: Less restrictive F_SEFL in qemu_dup_flags()

qemu_dup_flags() currently limits the flags that can be set on the
fcntl() F_SETFL call to those that we currently know can be set with
fcntl() F_SETFL.  The problem with this is that it will prevent use
of new flags in the future without a code update.

This patch relaxes the checking and lets fcntl() determine the flags
it can set.

Signed-off-by: Corey Bryant <coreyb@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
osdep.c