From: Jim Meyering Date: Sat, 13 May 1995 13:05:35 +0000 (+0000) Subject: (eaccess_stat): Make statp and path arguments const. X-Git-Tag: textutils-1_12_1~195 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4198f9347988c0a42179f95fe9baabe39f243066;p=thirdparty%2Fcoreutils.git (eaccess_stat): Make statp and path arguments const. (euidaccess): Make statp argument const. Use stat, not safe_stat. --- 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);