From nobody@FreeBSD.org  Tue Aug 14 02:47:24 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 7EA6F106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 14 Aug 2012 02:47:24 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 6A1778FC15
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 14 Aug 2012 02:47:24 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q7E2lO1x088993
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 14 Aug 2012 02:47:24 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q7E2lOeo088992;
	Tue, 14 Aug 2012 02:47:24 GMT
	(envelope-from nobody)
Message-Id: <201208140247.q7E2lOeo088992@red.freebsd.org>
Date: Tue, 14 Aug 2012 02:47:24 GMT
From: Lachlan Kang <LCRTRIfFu91c710azO2Y@live.co.uk>
To: freebsd-gnats-submit@FreeBSD.org
Subject: diff -qr produces incorrect output
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         170624
>Category:       gnu
>Synopsis:       diff(1): diff -qr produces incorrect output
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 14 02:50:12 UTC 2012
>Closed-Date:    
>Last-Modified:  Thu Apr 17 04:34:56 UTC 2014
>Originator:     Lachlan Kang
>Release:        FreeBSD 9.0-RELEASE
>Organization:
>Environment:
FreeBSD  9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:15:25 UTC 2012     root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
diff(1) produces incorrect output when recursively comparing folders that
contains links to different character devices.

Given the following directories and links:
dir1/a -> /dev/random
dir2/a -> /dev/zero
"diff -qr dir1 dir2" prints "File dir1/a is a character special file
while file dir2/a is a character special file".
It should print "Files dir1/a and dir2/a differ".
>How-To-Repeat:
mkdir dir1 dir2
ln -s /dev/random dir1/a
ln -s /dev/zero dir2/a
diff -qr dir1 dir2
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:
