diff options
author | tjr <tjr@FreeBSD.org> | 2002-06-14 02:20:05 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2002-06-14 02:20:05 +0000 |
commit | b7f83f53f9f626f04e3bc752801604713555442e (patch) | |
tree | d81e580768ff8c7a96e46e644c7128863a0f9f97 /usr.bin/sed | |
parent | 0c8f30b575ae4bb04faad24492d0faf0c1fa1ad4 (diff) | |
download | FreeBSD-src-b7f83f53f9f626f04e3bc752801604713555442e.zip FreeBSD-src-b7f83f53f9f626f04e3bc752801604713555442e.tar.gz |
Exit with non-zero status if an input file can not be opened. This was
broken by rev. 1.22.
Diffstat (limited to 'usr.bin/sed')
-rw-r--r-- | usr.bin/sed/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/sed/main.c b/usr.bin/sed/main.c index 2620131..c369654 100644 --- a/usr.bin/sed/main.c +++ b/usr.bin/sed/main.c @@ -344,6 +344,7 @@ mf_fgets(sp, spflag) fname = files->fname; if ((f = fopen(fname, "r")) == NULL) { warn("%s", fname); + rval = 1; continue; } if (inplace != NULL && *inplace == '\0') |