X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Wed, 18 Aug 2010 12:11:48 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: mknod bug? major minor's are whacky Message-ID: <20100818101148.GR11340@calimero.vinschen.de> Mail-Followup-To: cygwin AT cygwin DOT com References: <5FFFAB3EC03D09468D160693F176A1174EE2A922 AT CANOPUS> <4C6B2072 DOT 1080903 AT redhat DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4C6B2072.1080903@redhat.com> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Aug 17 17:51, Eric Blake wrote: > On 08/17/2010 05:46 PM, Bob Goldberg wrote: > > cygwin 1.7.6 > > > > attempting to: > > $ mknod null c 1 3 > > > > what I get is: > > crw-rw-rw- 1 user mkgroup-l-d 46200, 14467 2010-08-17 18:44 null > > > > WHERE did those crazy major/minor's come from!?!? They come from Cygwin. They are an accidental reflection of the volume id, which is used in stat::st_rdev for files by default. Cygwin only set st_dev to the device number so far. I fixed that in CVS so that st_rdev and st_dev both contain the device number now for device files. Thanks for the report, Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple