Message-Id: Comments: Authenticated sender is From: "Salvador Eduardo Tropea (SET)" Organization: INTI To: djgpp-workers AT delorie DOT com Date: Tue, 1 Dec 1998 14:24:42 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: bug in stat? X-mailer: Pegasus Mail for Windows (v2.54) Reply-To: djgpp-workers AT delorie DOT com Hi all: Last night I tried to add a new feature to the editor. Currently when you write a portion of text to a device the editor says "File already exists, overwrite?", that's silly no? Well I want to change it by: "That isn't a file, probably a device, go ahead?" or something like that. So I tried using stat, first from v2.01. It miserably failed. Then I extracted stat from v2.02 and tried again, now it passed half of the tests but not all. Example: /dev/prn -> v2.01 and v2.02: is a device prn -> v2.02: is a device /foo/prn -> both says that's a normal file but DOS understands it as a device. The questions are: Is just me? (I mixed stat from v2.02 and the rest of 2.01) Is that easy to solve? I didn't tried because I know Eli knows all the guts of stat and I guess he can find the solution much more quickly and cleanly. SET ------------------------------------ 0 -------------------------------- Visit my home page: http://set-soft.home.ml.org/ or http://www.geocities.com/SiliconValley/Vista/6552/ Salvador Eduardo Tropea (SET). (Electronics Engineer) Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org ICQ: 2951574 Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA TE: +(541) 759 0013