summaryrefslogtreecommitdiff
path: root/utility.c
diff options
context:
space:
mode:
authorMatt Kraai2000-09-27 03:01:40 +0000
committerMatt Kraai2000-09-27 03:01:40 +0000
commite7c1af1e0dc1440483d7f195f15eb0df5cf70a04 (patch)
tree181768dee00666d560354b921d72a0f2217cb179 /utility.c
parentbbaef66b3f99213f06adf04df6b3e5e61278d75b (diff)
downloadbusybox-e7c1af1e0dc1440483d7f195f15eb0df5cf70a04.zip
busybox-e7c1af1e0dc1440483d7f195f15eb0df5cf70a04.tar.gz
Continue concatenating files even if we can't open one.
Diffstat (limited to 'utility.c')
-rw-r--r--utility.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/utility.c b/utility.c
index ae69baf..df2515c 100644
--- a/utility.c
+++ b/utility.c
@@ -1636,12 +1636,13 @@ extern int print_file_by_name(char *filename)
FILE *file;
file = fopen(filename, "r");
if (file == NULL) {
+ errorMsg("%s: %s\n", filename, strerror(errno));
return FALSE;
}
print_file(file);
return TRUE;
}
-#endif /* BB_CAT || BB_LSMOD */
+#endif /* BB_CAT */
#if defined BB_ECHO || defined BB_TR
char process_escape_sequence(char **ptr)