mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
(mkdir): Use stat, not safe_stat.
This commit is contained in:
1 parent
5a69bc6e5f
commit
b3fc4e375f
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user