Date: Tue, 30 May 2000 17:55:16 +0200 (MET DST) From: Gisle Vanem To: djgpp AT delorie DOT com cc: eliz AT elta DOT co DOT il Subject: Re: mkdir and /dev/env Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Eli Zaretskii said: >> With "set YAFC=\yafc", this code fails: >> >> if (mkdir ("/dev/env/YAFC", S_IRUSR|S_IWUSR|S_IXUSR) != 0) >> perror(""); >> >> The mode is '0400|0200|0100' = 0700 (octal) >> >> Is that supposed to work? > > Yes, it is supposed to work. > > Does the above call work if you replace "/dev/env/YAFC" with "/yafc"? > If it does, please post the shortest program that exhibits the problem > with /dev/env, so that others could try reproducing it. I'm sorry, I was mislead. $YAFC was *not* "\yafc", but "\yafc\yafc". So the failing mkdir() was correct I suppose. There isn't a recursive version I assume? It of cource works with "\yafc" (or "/yafc/" etc.) > Sorry for asking the obvious, but you *do* use DJGPP v2.03, yes? Yes, and btw, YAFC is Yet Another Ftp Client available from http://www.stacken.kth.se/~mhe/yafc/ BTW, Regarding UNC paths and collapsing of multiple slashes, the fileutils (ls v3.16 etc). doesn't grok the UNC syntax. 'ls \\nera16\bedcom\gv' fails. Whereas 'dir \\nera16\becom\gv' (4os's dir) and 'mkdir ("\\\\nera16\\bedcom\\g\\foo")' works. Gisle V.