#include <sys/types.h>
#include <sys/stat.h>
-
#include <errno.h>
#ifndef errno
extern int errno;
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
#endif
-#include "safe-stat.h"
-
/* mkdir adapted from GNU tar. */
/* Make directory DPATH, with permission mode DMODE.
int cpid, status;
struct stat statbuf;
- if (SAFE_STAT (dpath, &statbuf) == 0)
+ if (stat (dpath, &statbuf) == 0)
{
errno = EEXIST; /* stat worked, so it already exists. */
return -1;