projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(distclean): Remove .deps.
[gnulib.git]
/
lib
/
rmdir.c
diff --git
a/lib/rmdir.c
b/lib/rmdir.c
index
f10b396
..
de898ec
100644
(file)
--- a/
lib/rmdir.c
+++ b/
lib/rmdir.c
@@
-16,14
+16,7
@@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifdef HAVE_CONFIG_H
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifdef HAVE_CONFIG_H
-#if defined (CONFIG_BROKETS)
-/* We use <config.h> instead of "config.h" so that a compilation
- using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
- (which it would do because it found this file in $srcdir). */
#include <config.h>
#include <config.h>
-#else
-#include "config.h"
-#endif
#endif
#include <sys/types.h>
#endif
#include <sys/types.h>
@@
-42,8
+35,6
@@
extern int errno;
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
#endif
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
#endif
-#include "safe-stat.h"
-
/* rmdir adapted from GNU tar. */
/* Remove directory DPATH.
/* rmdir adapted from GNU tar. */
/* Remove directory DPATH.
@@
-56,7
+47,7
@@
rmdir (dpath)
int cpid, status;
struct stat statbuf;
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))
return -1; /* errno already set */
if (!S_ISDIR (statbuf.st_mode))