From: Jim Meyering Date: Sat, 13 May 1995 13:13:04 +0000 (+0000) Subject: (mkdir): Use stat, not safe_stat. X-Git-Tag: textutils-1_12_1~191 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b3fc4e375fc65173e40a35a3e9168e1668c38ba4;p=thirdparty%2Fcoreutils.git (mkdir): Use stat, not safe_stat. --- diff --git a/lib/mkdir.c b/lib/mkdir.c index 07bd83deaf..7908b18b76 100644 --- a/lib/mkdir.c +++ b/lib/mkdir.c @@ -57,7 +57,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;