X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fmkdir.c;h=8495ad94bc41b77d33f3a1993c395c8505418323;hb=fa145a9f05c90f266754ff5b8e9ff2c81fc5ef3d;hp=1a5ba2ddcf86d5240852ab4bc74ad94ac5d12e38;hpb=abf922942f4ad74b82b0e29a169b2341cd347875;p=gnulib.git diff --git a/lib/mkdir.c b/lib/mkdir.c index 1a5ba2ddc..8495ad94b 100644 --- a/lib/mkdir.c +++ b/lib/mkdir.c @@ -12,8 +12,8 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include @@ -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;