ports/misc/sh-utils/files/patch-src_test.c
Christian Weisgerber dcfab635e7 Rename included eaccess() function to avoid clash with -CURRENT's
eaccess(2) system call.

PR:		46363
Submitted by:	Cyrille Lefevre <cyrille.lefevre@laposte.net>
2003-02-04 00:13:01 +00:00

13 lines
413 B
C

$FreeBSD$
--- src/test.c.orig Tue Feb 4 00:43:33 2003
+++ src/test.c Tue Feb 4 00:43:50 2003
@@ -153,6 +153,7 @@
return (stat (path, finfo));
}
+#define eaccess test_access
/* Do the same thing access(2) does, but use the effective uid and gid,
and don't make the mistake of telling root that any file is executable.
But this loses when the containing filesystem is mounted e.g. read-only. */