errno = ENOENT;
return (-1);
}
- return (SAFE_STAT (path, finfo));
+ return (safe_stat (path, finfo));
}
/* Do the same thing access(2) does, but use the effective uid and gid,
pos += 3;
if (l_is_l || r_is_l)
test_syntax_error ("-ef does not accept -l\n", (char *)NULL);
- if (SAFE_STAT (argv[op - 1], &stat_buf) < 0)
+ if (safe_stat (argv[op - 1], &stat_buf) < 0)
return (FALSE);
- if (SAFE_STAT (argv[op + 1], &stat_spare) < 0)
+ if (safe_stat (argv[op + 1], &stat_spare) < 0)
return (FALSE);
return (TRUE ==
(stat_buf.st_dev == stat_spare.st_dev &&
#else
/* An empty filename is not a valid pathname. */
if ((argv[pos - 1][0] == '\0') ||
- (SAFE_LSTAT (argv[pos - 1], &stat_buf) < 0))
+ (safe_lstat (argv[pos - 1], &stat_buf) < 0))
return (FALSE);
return (TRUE == (S_ISLNK (stat_buf.st_mode)));