From owner-freebsd-stable@FreeBSD.ORG Sat Jan 10 04:12:14 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9B8ED1065673 for ; Sat, 10 Jan 2009 04:12:14 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx22.fluidhosting.com [204.14.89.5]) by mx1.freebsd.org (Postfix) with ESMTP id 32EE58FC17 for ; Sat, 10 Jan 2009 04:12:14 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 10759 invoked by uid 399); 10 Jan 2009 03:45:33 -0000 Received: from localhost (HELO lap.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 10 Jan 2009 03:45:33 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <496819DB.1030601@FreeBSD.org> Date: Fri, 09 Jan 2009 19:45:31 -0800 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.19 (X11/20090102) MIME-Version: 1.0 To: Yannick Cadin References: In-Reply-To: X-Enigmail-Version: 0.95.7 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: 2 (very old) bugs? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jan 2009 04:12:14 -0000 Yannick Cadin wrote: > Hi everybody, > > Is someone can confirm me that there are 2 bugs never fixed: > > - first in the stat command. Only with the -x option. If you execute > stat -x on /tmp or /usr/bin/passwd parameters for example, the numeric > representation of mode is wrong. The "special" bits are always 0. No > suid-bit, no sticky bit! Our version of stat(1) is essentially an exact duplicate of the code from NetBSD. I imported this originally, but I have not not had time to merge changes for a while now. If anyone is interested in taking this on have a look at: http://cvsweb.netbsd.org/bsdweb.cgi/src/usr.bin/stat/ If you get stuck with something please ask for help on -hackers first. If you get a patch against HEAD I will be glad to take a look at it, and commit it if appropriate. hth, Doug -- This .signature sanitized for your protection