From f4eebef50a14b8f804aed9a13f6437c6550b348e Mon Sep 17 00:00:00 2001 From: andersen Date: Thu, 2 Aug 2001 05:02:46 +0000 Subject: Latest patch from vodz. Adds a check for divide by zero in the posix math suport, cleaner math syntax error checking, moves redundant signal string tables (from kill and ash) into libbb and provides a few cleanups elsewhere. git-svn-id: svn://busybox.net/trunk/busybox@3181 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- cut.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'cut.c') diff --git a/cut.c b/cut.c index abe05726b..3ed264870 100644 --- a/cut.c +++ b/cut.c @@ -344,10 +344,8 @@ extern int cut_main(int argc, char **argv) int i; FILE *file; for (i = optind; i < argc; i++) { - file = fopen(argv[i], "r"); - if (file == NULL) { - perror_msg("%s", argv[i]); - } else { + file = wfopen(argv[i], "r"); + if(file) { cut_file(file); fclose(file); } -- cgit v1.2.3-55-g6feb