From owner-freebsd-bugs@FreeBSD.ORG Thu May 24 00:20:01 2007 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 306FC16A41F for ; Thu, 24 May 2007 00:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 146F213C4BA for ; Thu, 24 May 2007 00:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l4O0K0Rf075051 for ; Thu, 24 May 2007 00:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l4O0K088075050; Thu, 24 May 2007 00:20:00 GMT (envelope-from gnats) Resent-Date: Thu, 24 May 2007 00:20:00 GMT Resent-Message-Id: <200705240020.l4O0K088075050@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ighighi Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BAC3E16A46E for ; Thu, 24 May 2007 00:14:12 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id AF9F713C45A for ; Thu, 24 May 2007 00:14:12 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l4O0ECsL020954 for ; Thu, 24 May 2007 00:14:12 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l4O0ECYh020953; Thu, 24 May 2007 00:14:12 GMT (envelope-from nobody) Message-Id: <200705240014.l4O0ECYh020953@www.freebsd.org> Date: Thu, 24 May 2007 00:14:12 GMT From: Ighighi To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: bin/112920: [PATCH]: wrong realpath(1) behaviour X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 May 2007 00:20:01 -0000 >Number: 112920 >Category: bin >Synopsis: [PATCH]: wrong realpath(1) behaviour >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: Thu May 24 00:20:00 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Ighighi >Release: 6.2-STABLE >Organization: >Environment: FreeBSD orion 6.2-STABLE FreeBSD 6.2-STABLE #1: Fri May 18 01:56:15 VET 2007 root@orion:/usr/obj/usr/src/sys/CUSTOM i386 >Description: When printing the message error, the realpath(1) utility uses the buf passed to realpath(3) instead of the passed argv[1]. When errno is set to ENAMETOOLONG, it prints the current directory, which is misleading, IMO. >How-To-Repeat: $ cd / $ realpath `perl -e 'print "A"x1026'` realpath: /: File name too long $ cd /tmp $ realpath `perl -e 'print "A"x1026'` realpath: /tmp: File name too long >Fix: >Release-Note: >Audit-Trail: >Unformatted: