X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Frmdir.c;h=de898ec5418572cd90a44073cdc7917b458c491b;hb=6aae241f16ed2dbe57475cb4c8b3a5b1ca1e9699;hp=f10b3969e67b74c71f67940f102eed3dfea72f21;hpb=760d9074e721bbffc97ca68eb48c06a248727c4e;p=gnulib.git diff --git a/lib/rmdir.c b/lib/rmdir.c index f10b3969e..de898ec54 100644 --- 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 -#if defined (CONFIG_BROKETS) -/* We use 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 -#else -#include "config.h" -#endif #endif #include @@ -42,8 +35,6 @@ extern int errno; #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) #endif -#include "safe-stat.h" - /* rmdir adapted from GNU tar. */ /* Remove directory DPATH. @@ -56,7 +47,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))