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
commit4198f9347988c0a42179f95fe9baabe39f243066 (patch)
tree22c6fc71b8b74ef920a4c2124c3beb557a9eae97 /lib/euidaccess.c
parent26abb25bd0b2d03b1af01ea8fdba4cff4514e0e7 (diff)
downloadcoreutils-4198f9347988c0a42179f95fe9baabe39f243066.tar.xz
(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 499040c5b..598b87522 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);