From: Jim Meyering Date: Sat, 13 May 1995 13:13:04 +0000 (+0000) Subject: (mkdir): Use stat, not safe_stat. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4217177afc596dc0d1005f9eea607834ef2ae5c4;p=pspp (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;