lockfile: Be more forgiving about lockfiles for symlinks.
authorBen Pfaff <blp@nicira.com>
Mon, 30 Jul 2012 21:41:13 +0000 (14:41 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 1 Aug 2012 17:55:58 +0000 (10:55 -0700)
commitb1fdc5fb270c0ca21de4bbe5002aca4dd79e9911
tree1be30a821d462a2683a82e39f6c80fe0509b1be9
parentfee0c9631470e8eb10df25544f6661d0beb43a7a
lockfile: Be more forgiving about lockfiles for symlinks.

As the database is being transitioned from /etc to /var, there is a symlink
from the old to the new location for the database and a symlink for its
lockfile.  This works OK, but it would be more user-friendly to still work
correctly in case the symlink for the lockfile isn't there (since its
existence is non-obvious), so this commit implements that behavior.

Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/lockfile.c
tests/lockfile.at
tests/test-lockfile.c