aboutsummaryrefslogtreecommitdiff
path: root/listamsb.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2025-03-04 19:12:57 -0500
committerB. Watson <urchlay@slackware.uk>2025-03-04 19:12:57 -0500
commit175913ba742237dbbdaa5b99c6acea5770cfe4f4 (patch)
tree896dda78c7bd14294c1f3c6cae1bba01cf9e4b4b /listamsb.c
parent848156d71edf0fef3fb34cb2aa31571068a45d2d (diff)
downloadbw-atari8-tools-175913ba742237dbbdaa5b99c6acea5770cfe4f4.tar.gz
listamsb: tweak popen() stuff, part 2.
Diffstat (limited to 'listamsb.c')
-rw-r--r--listamsb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/listamsb.c b/listamsb.c
index 5071dc0..7e673b8 100644
--- a/listamsb.c
+++ b/listamsb.c
@@ -590,7 +590,8 @@ void open_output() {
verbose(1, "using pipe for output: %s", pipe_command);
outfile = popen(pipe_command, "w"); /* "wb" not allowed! */
/* we probably never see this error. popen() fails only is
- we feed it an invalid mode, or if fork() or pipe() fails.
+ we feed it an invalid mode, or if fork() or pipe() fails,
+ or I suppose if some idjit has done a "rm -f /bin/sh"...
all other errors are caught at pclose(). */
if(!outfile) os_err("|%s: %s", pipe_command, strerror(errno));
need_pclose = 1;