Date: Mon, 24 Nov 1997 13:46:31 +0200 (IST) From: Eli Zaretskii To: DJ Delorie cc: djgpp-workers AT delorie DOT com Subject: `access' patch Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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 */