summaryrefslogtreecommitdiffstats
path: root/src/utils/lib/pager.c
diff options
context:
space:
mode:
authorManuel Bentele2020-12-02 13:08:58 +0100
committerManuel Bentele2020-12-02 13:08:58 +0100
commit9fc030ed9bffec9f9715595dd5a205a353912d3c (patch)
tree8137142e94abf7cd4eefd3b591c487d034b57e50 /src/utils/lib/pager.c
parentSetup xloop device with XLOOP_CONFIGURE ioctl call (diff)
downloadxloop-9fc030ed9bffec9f9715595dd5a205a353912d3c.tar.gz
xloop-9fc030ed9bffec9f9715595dd5a205a353912d3c.tar.xz
xloop-9fc030ed9bffec9f9715595dd5a205a353912d3c.zip
Update xlosetup's 'lib' and 'libsmartcol' from util-linux 2.36.1
Diffstat (limited to 'src/utils/lib/pager.c')
-rw-r--r--src/utils/lib/pager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/lib/pager.c b/src/utils/lib/pager.c
index b3cf6ee..747521e 100644
--- a/src/utils/lib/pager.c
+++ b/src/utils/lib/pager.c
@@ -88,14 +88,14 @@ static int start_command(struct child_process *cmd)
if (cmd->pid < 0) {
if (need_in)
close_pair(fdin);
- else if (cmd->in)
+ else if (0 <= cmd->in)
close(cmd->in);
return -1;
}
if (need_in)
close(fdin[0]);
- else if (cmd->in)
+ else if (0 <= cmd->in)
close(cmd->in);
return 0;
}