From owner-freebsd-current Sat May 18 20:46:46 2002 Delivered-To: freebsd-current@freebsd.org Received: from mail.deltanet.com (mail.deltanet.com [216.237.144.132]) by hub.freebsd.org (Postfix) with ESMTP id 0443F37B407; Sat, 18 May 2002 20:46:43 -0700 (PDT) Received: from mammoth.eat.frenchfries.net (da001d0308.lax-ca.osd.concentric.net [64.0.145.53]) by mail.deltanet.com (8.11.6/8.11.6) with ESMTP id g4J3PqO31626; Sat, 18 May 2002 20:25:54 -0700 Received: by mammoth.eat.frenchfries.net (Postfix, from userid 1000) id F18444DDB; Sat, 18 May 2002 20:45:15 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mammoth.eat.frenchfries.net (Postfix) with ESMTP id E54B149CA; Sat, 18 May 2002 20:45:15 -0700 (PDT) Date: Sat, 18 May 2002 20:45:15 -0700 (PDT) From: Paul Herman X-X-Sender: pherman@mammoth.eat.frenchfries.net To: Giorgos Keramidas Cc: "Benjamin P. Grubin" , Subject: Re: mergemaster(8) broken -- uses Perl In-Reply-To: <20020519032321.GA15987@hades.hell.gr> Message-ID: <20020518203835.W923-100000@mammoth.eat.frenchfries.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 19 May 2002, Giorgos Keramidas wrote: > On 2002-05-18 23:11, Benjamin P. Grubin wrote: > > Giorgos Keramidas wrote: > > > > > > [ The above should print in stdout just 01777 as a number. ] > > > ... > > > Does anyone know of any other (possibly more elegant way) of > > > reading the numeric value of the permission bits for a file? Hmmm, it's ugly but perhaps not as ugly: bash$ fstat -n /kernel < /kernel | grep -v PID pherman fstat 942 0 116,196608 235 100555 4114305 r /kernel (the 100555). The bad side is that you'd have to do a little trickery to catch the correct process. It'd probably be better just to add an option to fstat to display /usr/ports/sysutils/stat type info... -Paul. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message