#include "version.h"
#include "system.h"
-#include "safe-stat.h"
#include "error.h"
#ifdef _POSIX_VERSION
{
struct stat stats;
- if (safe_stat (path, &stats))
+ if (stat (path, &stats))
return 2;
if (!S_ISDIR (stats.st_mode))
#else /* TEST_STANDALONE */
# include "system.h"
# include "version.h"
-# include "safe-stat.h"
-# include "safe-lstat.h"
# include "group-member.h"
# include "error.h"
# if !defined (S_IXUGO)
errno = ENOENT;
return (-1);
}
- return (safe_stat (path, finfo));
+ return (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", NULL);
- if (safe_stat (argv[op - 1], &stat_buf) < 0)
+ if (stat (argv[op - 1], &stat_buf) < 0)
return (FALSE);
- if (safe_stat (argv[op + 1], &stat_spare) < 0)
+ if (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))
+ (lstat (argv[pos - 1], &stat_buf) < 0))
return (FALSE);
return (TRUE == (S_ISLNK (stat_buf.st_mode)));
#include "system.h"
#include "version.h"
-#include "safe-stat.h"
#include "error.h"
#if !defined (UTMP_FILE) && defined (_PATH_UTMP) /* 4.4BSD. */
line[DEV_DIR_LEN + sizeof (this->ut_line)] = '\0';
}
- if (safe_stat (line, &stats) == 0)
+ if (stat (line, &stats) == 0)
{
mesg = (stats.st_mode & S_IWGRP) ? '+' : '-';
last_change = stats.st_atime;