#include "modechange.h"
#include "system.h"
#include "version.h"
-
-int lstat ();
+#include "safe-stat.h"
+#include "safe-lstat.h"
char *savedir ();
char *xmalloc ();
unsigned short newmode;
int errors = 0;
- if (lstat (file, &file_stats))
+ if (SAFE_LSTAT (file, &file_stats))
{
if (force_silent == 0)
error (0, errno, "%s", file);
if (! deref_symlink)
return 0;
else
- if (stat (file, &file_stats))
+ if (SAFE_STAT (file, &file_stats))
{
if (force_silent == 0)
error (0, errno, "%s", file);