delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/11/24/06:46:38

Date: Mon, 24 Nov 1997 13:46:31 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: DJ Delorie <dj AT delorie DOT com>
cc: djgpp-workers AT delorie DOT com
Subject: `access' patch
Message-ID: <Pine.SUN.3.91.971124134458.23713d-100000@is>
MIME-Version: 1.0

This change somehow is not in the last alpha of v2.02:

*** src/libc/posix/unistd/access.c	Mon Sep  8 00:10:40 1997
--- ../../src/libc/posix/unistd/access.c	Fri Apr 18 18:23:00 1997
*************** int access(const char *fn, int flags)
*** 51,57 ****
      return -1;			/* not a directory */
    }
  
!   if ((flags & W_OK) && (attr & 1))
    {
      errno = EACCES;
      return -1;			/* not writable */
--- 51,57 ----
      return -1;			/* not a directory */
    }
  
!   if ((flags & W_OK) && (attr & 3)) /* read-only, system or hidden */
    {
      errno = EACCES;
      return -1;			/* not writable */

- Raw text -


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