X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fmkdir.c;h=efde52e055abb31396d596a310b94b621af85226;hb=6aae241f16ed2dbe57475cb4c8b3a5b1ca1e9699;hp=07bd83deaf25edaa0ad26223984af8641e4d5f68;hpb=2d6883c97bd82ff276eb36d09ec6ec89a923cc5a;p=gnulib.git diff --git a/lib/mkdir.c b/lib/mkdir.c index 07bd83dea..efde52e05 100644 --- a/lib/mkdir.c +++ b/lib/mkdir.c @@ -34,8 +34,6 @@ 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. @@ -57,7 +55,7 @@ mkdir (dpath, 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;