(read_filesystem_list):
authorJim Meyering <jim@meyering.net>
Sat, 4 Jul 1998 00:48:11 +0000 (00:48 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 4 Jul 1998 00:48:11 +0000 (00:48 +0000)
commit2bc1fe2a9eef366da542141ab88de3b90460b53b
tree3d347dd1d097e3d45b14d73ec0fa1c1adfe6e027
parent0e5ba87d9a41ae9d434fff741706c85d3bbcdadb
(read_filesystem_list):
Don't leak memory on failure.
Don't create a dummy struct mount_entry entry;
use the address-of-the-tail-address method instead.
Preserve errno if possible on failure, setting it to 0 if inapplicable.
Close file descriptor leak if the F_SETLKW failed.
Report an error if SVR4 lock file cannot be opened for some reason
other than a nonexistent lock file.
lib/mountlist.c