summaryrefslogtreecommitdiff
path: root/lib/euidaccess.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-05-13 13:05:35 +0000
committerJim Meyering <jim@meyering.net>1995-05-13 13:05:35 +0000
commit5a79e1f048bd5ad328af146c6002baad87fd4f25 (patch)
tree70ef94d852b827e7e8f0d4d7f87a6af48db1bd8b /lib/euidaccess.c
parent88b3f208a29f337d3de3df6013f11c8a2b69dd94 (diff)
downloadgnulib-5a79e1f048bd5ad328af146c6002baad87fd4f25.tar.gz
(eaccess_stat): Make statp and path arguments const.
(euidaccess): Make statp argument const. Use stat, not safe_stat.
Diffstat (limited to 'lib/euidaccess.c')
-rw-r--r--lib/euidaccess.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/euidaccess.c b/lib/euidaccess.c
index 499040c5b3..598b875225 100644
--- a/lib/euidaccess.c
+++ b/lib/euidaccess.c
@@ -103,9 +103,9 @@ static int have_ids = 0;
int
eaccess_stat (statp, mode, path)
- struct stat *statp;
+ const struct stat *statp;
int mode;
- char *path;
+ const char *path;
{
int granted;
@@ -158,7 +158,7 @@ eaccess_stat (statp, mode, path)
int
euidaccess (path, mode)
- char *path;
+ const char *path;
int mode;
{
struct stat stats;
@@ -177,7 +177,7 @@ euidaccess (path, mode)
return access (path, mode);
}
- if (safe_stat (path, &stats))
+ if (stat (path, &stats))
return -1;
return eaccess_stat (&stats, mode, path);