]> xenbits.xensource.com Git - libvirt.git/commit
Fix F_DUPFD_CLOEXEC operation args
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 3 May 2013 10:10:50 +0000 (11:10 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 3 May 2013 13:06:15 +0000 (14:06 +0100)
commitd6670a64e1067f29da3c3e032739e140280b763d
tree4f36bce251d02b1aa0e99221a55cfc17f94c5ec5
parent22d12905e612de93944b4413ae3fbd278df52fe8
Fix F_DUPFD_CLOEXEC operation args

The F_DUPFD_CLOEXEC operation with fcntl() expects a single
int argument, specifying the minimum FD number for the newly
dup'd file descriptor. We were not specifying that causing
random stack data to be accessed as the FD number. Sometimes
that worked, sometimes it didn't.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/rpc/virnetsocket.c