On Mon, Jul 30, 2012 at 03:18:17PM -0700, Ben Pfaff wrote: > open() with O_CREAT|O_EXCL yields EEXIST if the name passed in is a > symlink, but we would like "ovsdb-tool create /etc/openvswitch/conf.db" to > work if /etc/openvswitch/conf.db is a symlink to elsewhere in the file > system. This commit fixes the problem. It introduces a theoretical race, > but no one should be doing "ovsdb-tool create" in parallel anyhow; O_EXCL > is just an idiot check here, not required to be fail-safe. > > Debian bug #681880. > CC: [email protected] > Reported-by: Bastian Blank <[email protected]> > Signed-off-by: Ben Pfaff <[email protected]>
Reviewed-by: Simon Horman <[email protected]> _______________________________________________ dev mailing list [email protected] http://openvswitch.org/mailman/listinfo/dev
