xemu/include/io
Ross Lagerwall 902f6e14fc io: Fix QIOChannelFile when creating and opening read-write
The code wrongly passes the mode to open() only if O_WRONLY is set.
Instead, the mode should be passed when O_CREAT is set (or O_TMPFILE on
Linux). Fix this by always passing the mode since open() will correctly
ignore the mode if it is not needed. Add a testcase which exercises this
bug and also change the existing testcase to check that the mode of the
created file is correct.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2018-02-15 16:54:57 +00:00
..
channel-buffer.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
channel-command.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
channel-file.h io: Fix QIOChannelFile when creating and opening read-write 2018-02-15 16:54:57 +00:00
channel-socket.h sockets: Limit SocketAddressLegacy to external interfaces 2017-05-09 09:14:40 +02:00
channel-tls.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
channel-util.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
channel-watch.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
channel-websock.h io: get rid of bounce buffering in websock write path 2017-10-16 16:57:08 +01:00
channel.h io: Add new qio_channel_read{, v}_all_eof functions 2017-09-06 10:11:54 -05:00
dns-resolver.h sockets: Limit SocketAddressLegacy to external interfaces 2017-05-09 09:14:40 +02:00
net-listener.h io: introduce a network socket listener API 2017-12-15 15:07:26 +00:00
task.h sockets: Limit SocketAddressLegacy to external interfaces 2017-05-09 09:14:40 +02:00