delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/30/11:55:32

Date: Tue, 30 May 2000 17:55:16 +0200 (MET DST)
From: Gisle Vanem <giva AT bryggen DOT bgnett DOT no>
To: djgpp AT delorie DOT com
cc: eliz AT elta DOT co DOT il
Subject: Re: mkdir and /dev/env
Message-ID: <Pine.UW2.3.95.1000530170902.5629A-100000@bryggen.bgnett.no>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

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 -


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