delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/02/19/16:13:12

Message-Id: <200002192044.PAA26251@delorie.com>
From: "Mark E." <snowball3 AT bigfoot DOT com>
To: djgpp-workers AT delorie DOT com
Date: Sat, 19 Feb 2000 15:52:27 -0500
MIME-Version: 1.0
Subject: fileutils mkdir gotcha
X-mailer: Pegasus Mail for Win32 (v3.12a)
Reply-To: djgpp-workers AT delorie DOT com

Hi folks,
While playing with binutils and trying to get 'make install' to play nice 
with '/dev/env/DJDIR', I discovered a problem either with libc.a or with 
Fileutils.

The install process in binutils calls the 'mkinstalldirs' script which in 
turn calls 'mkdir' from fileutils. The input to mkinstalldirs is this case 
'/dev/env/DJDIR'. mkinstalldirs calls 'mkdir /dev' which it will create 
(which is bad). Then calls 'mkdir /dev/env'. mkdir reports that the dir. 
exists even though it doesn't (which in this case is good). And then 
'mkdir /dev/env/DJDIR' which reports that the dir exists (which it 
should).

What, if anything, should be done to handle the case of 'mkdir /dev'?

--- 
Mark Elbrecht, snowball3 AT bigfoot DOT com
http://snowball.frogspace.net/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019