From owner-freebsd-bugs Fri Aug 4 6:50: 5 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 79C1D37BB21 for ; Fri, 4 Aug 2000 06:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id GAA67133; Fri, 4 Aug 2000 06:50:00 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id 8858A37B5F6; Fri, 4 Aug 2000 06:49:24 -0700 (PDT) Message-Id: <20000804134924.8858A37B5F6@hub.freebsd.org> Date: Fri, 4 Aug 2000 06:49:24 -0700 (PDT) From: B.Candler@pobox.com To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: bin/20397: cmp(1) -s fails when comparing a file to stdin Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 20397 >Category: bin >Synopsis: cmp(1) -s fails when comparing a file to stdin >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Aug 04 06:50:00 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Brian Candler >Release: 4.0-20000718-STABLE >Organization: >Environment: FreeBSD bloodhound.uk.worldonline.com 4.0-20000718-STABLE FreeBSD 4.0-20000718-STABLE #0: Thu Jul 20 15:13:20 BST 2000 root@bloodhound.uk.worldonline.com:/usr/src/sys/compile/BLOODHOUND i386 >Description: cmp gives an exit status of 1 when comparing two identical files, in the case where one is given on stdin (-) and the -s flag is also given. (Aside: this breaks 'make check' for courier-imap) >How-To-Repeat: $ cmp -s /etc/passwd /etc/passwd $ echo $? 0 $ cat /etc/passwd | cmp - /etc/passwd $ echo $? 0 $ cat /etc/passwd | cmp -s - /etc/passwd $ echo $? 1 >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message