mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-08-25 09:06:47 +00:00
readahead: fix fd validity check
https://bugzilla.redhat.com/show_bug.cgi?id=868603
This commit is contained in:
@@ -460,7 +460,7 @@ static int collect(const char *root) {
|
||||
log_warning("readlink(%s) failed: %s", fn, strerror(-k));
|
||||
|
||||
next_iteration:
|
||||
if (m->fd)
|
||||
if (m->fd >= 0)
|
||||
close_nointr_nofail(m->fd);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user