(eaccess_stat): Make statp and path arguments const.
authorJim Meyering <jim@meyering.net>
Sat, 13 May 1995 13:05:35 +0000 (13:05 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 13 May 1995 13:05:35 +0000 (13:05 +0000)
(euidaccess): Make statp argument const.  Use stat, not safe_stat.

lib/euidaccess.c

index 499040c..598b875 100644 (file)
@@ -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);