[hackers] [sbase] sed: Include filename in error message || Michael Forney
commit dbbac61fc4e83bb9abe22e91d6ab2c4c3d1b605e
Author: Michael Forney <mforney_AT_mforney.org>
AuthorDate: Thu Feb 20 21:41:29 2020 -0800
Commit: Michael Forney <mforney_AT_mforney.org>
CommitDate: Thu Feb 20 21:49:11 2020 -0800
sed: Include filename in error message
diff --git a/sed.c b/sed.c
index 2f4eae2..0847194 100644
--- a/sed.c
+++ b/sed.c
_AT_@ -1128,7 +1128,7 @@ next_file(void)
file = stdin;
} else if (!(file = fopen(*files, "r"))) {
/* warn this file didn't open, but move on to next */
- weprintf("fopen:");
+ weprintf("fopen %s:", *files);
ret = 1;
}
files++;
Received on Fri Feb 21 2020 - 06:52:29 CET
This archive was generated by hypermail 2.3.0
: Fri Feb 21 2020 - 07:00:28 CET