Mail Archives: djgpp/2000/05/30/11:55:32
Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> 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.
- Raw text -