diff options
author | Jim Meyering <jim@meyering.net> | 1995-11-03 20:01:13 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1995-11-03 20:01:13 +0000 |
commit | 6875b205d6506f4c3be4bf5b8834c6cd5ac97017 (patch) | |
tree | 9dd4ed654c4259b665a103277af4daf1095afd27 | |
parent | 47306242ec31f2053e0494e7558d07a0bcc8dbb3 (diff) | |
download | coreutils-6875b205d6506f4c3be4bf5b8834c6cd5ac97017.tar.xz |
(remove_file, remove_dir): Use euidaccess instead of euidaccess_stat.Likewise.
-rw-r--r-- | src/rm.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -37,7 +37,7 @@ char *basename (); char *stpcpy (); char *xmalloc (); char *xrealloc (); -int eaccess_stat (); +int euidaccess (); int yesno (); void strip_trailing_slashes (); @@ -221,7 +221,7 @@ remove_file (statp) struct stat *statp; { if (!ignore_missing_files && (interactive || stdin_tty) - && eaccess_stat (statp, W_OK, pathname) + && euidaccess (pathname, W_OK) #ifdef S_ISLNK && !S_ISLNK (statp->st_mode) #endif @@ -273,7 +273,7 @@ remove_dir (statp) } if (!ignore_missing_files && (interactive || stdin_tty) - && eaccess_stat (statp, W_OK, pathname)) + && euidaccess (pathname, W_OK)) { fprintf (stderr, "%s: descend directory `%s', overriding mode %04o? ", |