| www.delorie.com/djgpp/mail-archives/browse.cgi | search |
| Message-Id: | <200002192304.SAA30884@delorie.com> |
| From: | "Mark E." <snowball3 AT bigfoot DOT com> |
| To: | djgpp-workers AT delorie DOT com |
| Date: | Sat, 19 Feb 2000 18:12:09 -0500 |
| MIME-Version: | 1.0 |
| Subject: | Re: fileutils mkdir gotcha |
| X-mailer: | Pegasus Mail for Win32 (v3.12a) |
| Reply-To: | djgpp-workers AT delorie DOT com |
> What, if anything, should be done to handle the case of 'mkdir /dev'? and add '/dev/env' too. Turns out I already had an 'env' directory from my previous experiment so of course the directory existed. I would suggest modifying 'mkdir.c' check the result of _put_path for '/dev' and '/dev/env' and set errno to EEXIST (and return -1) for these two cases. This would in turn require a small change to _put_path2 to prevent '/dev/env' from turning into 'env' like it currently does. Mark --- Mark Elbrecht, snowball3 AT bigfoot DOT com http://snowball.frogspace.net/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |