brcompat: Write temporary file to same directory as config file.
authorBen Pfaff <blp@nicira.com>
Tue, 30 Dec 2008 21:25:35 +0000 (13:25 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 30 Dec 2008 21:25:35 +0000 (13:25 -0800)
commit20b5f534ba035d337827f6339c8977fd3d1089d0
tree75751e10ad3b81ac1ae3ee82221a7233da13f3da
parent0868a05550088156cd401ff8025ecfa8fc1e912a
brcompat: Write temporary file to same directory as config file.

Otherwise, we will write it in the current working directory, which will
be / if we're running as a daemon (see daemonize()).  We shouldn't assume
that we can write to that directory, and it might not be in the same
file system as the output file anyhow.
vswitchd/brcompat.c