cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/03/20/20:23:59

Date: Fri, 20 Mar 1998 20:23:53 -0500 (EST)
Message-Id: <199803210123.UAA04142@delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: martin DOT stromberg AT lu DOT erisoft DOT se
CC: djgpp-workers AT delorie DOT com
In-reply-to: <199803210114.CAA14889@sister.ludd.luth.se> (message from Martin
Str|mberg on Sat, 21 Mar 1998 02:14:25 +0100 (MET))
Subject: Re: mkdir and errno

Me thinks you need an "else" in there, else what's the point of
calling access?

>         if (access(dirname, D_OK) == 0)
>         errno = EEXIST;
> +       /* Restore errno. */
> +       errno = EACCES;
>       }

- Raw text -


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