diff options
author | Neil Brown <neilb@suse.de> | 2008-07-12 20:28:38 +1000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2008-07-12 20:28:38 +1000 |
commit | d7161f3b5150d217c8cbbf16a5d567885679b7b8 (patch) | |
tree | 1acab072b5d6c860caf02909a6b48b5c9226ffd8 | |
parent | 2c514b7120a5e58cf803c854c047de03bd774730 (diff) |
Fix fd comparison in Incremental
fd==0 is theoretically possible...
-rw-r--r-- | Incremental.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Incremental.c b/Incremental.c index 712f2bdb..266111ae 100644 --- a/Incremental.c +++ b/Incremental.c @@ -727,7 +727,7 @@ static char *container2devname(char *devname) int fd = open(devname, O_RDONLY); char *mdname = NULL; - if (fd > 0) { + if (fd >= 0) { mdname = devnum2devname(fd2devnum(fd)); close(fd); } |