diff options
author | sheldonh <sheldonh@FreeBSD.org> | 2000-07-25 13:01:34 +0000 |
---|---|---|
committer | sheldonh <sheldonh@FreeBSD.org> | 2000-07-25 13:01:34 +0000 |
commit | ff63b77588c079d4921831b98b0f167b480967a6 (patch) | |
tree | 40edbddc28c725a1ed41036b494e393831df3577 /usr.bin/cmp | |
parent | 2de7b8d72b9f8324bd4e07219ca1dc1689ba4614 (diff) | |
download | FreeBSD-src-ff63b77588c079d4921831b98b0f167b480967a6.zip FreeBSD-src-ff63b77588c079d4921831b98b0f167b480967a6.tar.gz |
Fix a bug introduced in rev 1.8, where special files ended up
being treated like regular files because of missing braces.
PR: 20143
Diffstat (limited to 'usr.bin/cmp')
-rw-r--r-- | usr.bin/cmp/cmp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/cmp/cmp.c b/usr.bin/cmp/cmp.c index cfa43fe..73e89e4 100644 --- a/usr.bin/cmp/cmp.c +++ b/usr.bin/cmp/cmp.c @@ -157,7 +157,7 @@ endargs: if (special) c_special(fd1, file1, skip1, fd2, file2, skip2); - else + else { if (zflag && sb1.st_size != sb2.st_size) { if (!sflag) (void) printf("%s %s differ: size\n", @@ -166,6 +166,7 @@ endargs: } c_regular(fd1, file1, skip1, sb1.st_size, fd2, file2, skip2, sb2.st_size); + } exit(0); } |