mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
(rmdir): Use stat, not safe_stat.
This commit is contained in:
1 parent
eec5824b1a
commit
8a7a1fda12
1 file changed
+1
-1
+1
-1
@@ -49,7 +49,7 @@ rmdir (dpath)
|
||||
int cpid, status;
|
||||
struct stat statbuf;
|
||||
|
||||
if (safe_stat (dpath, &statbuf) != 0)
|
||||
if (stat (dpath, &statbuf) != 0)
|
||||
return -1; /* errno already set */
|
||||
|
||||
if (!S_ISDIR (statbuf.st_mode))
|
||||
|
||||
Reference in new issue
Block a user