projects
/
cumulus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix a double-close of a file descriptor.
[cumulus.git]
/
scandir.cc
diff --git
a/scandir.cc
b/scandir.cc
index
d35c552
..
1db5ec3
100644
(file)
--- a/
scandir.cc
+++ b/
scandir.cc
@@
-351,7
+351,6
@@
void dump_inode(const string& path, // Path within snapshot
file_size = dumpfile(fd, file_info, path, stat_buf);
file_info["size"] = encode_int(file_size);
- close(fd);
if (file_size < 0)
return; // error occurred; do not dump file