diff options
author | Jim Meyering <jim@meyering.net> | 1995-05-13 13:05:35 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1995-05-13 13:05:35 +0000 |
commit | 4198f9347988c0a42179f95fe9baabe39f243066 (patch) | |
tree | 22c6fc71b8b74ef920a4c2124c3beb557a9eae97 /lib | |
parent | 26abb25bd0b2d03b1af01ea8fdba4cff4514e0e7 (diff) | |
download | coreutils-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')
-rw-r--r-- | lib/euidaccess.c | 8 |
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); |