X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fmkdir.c;h=8495ad94bc41b77d33f3a1993c395c8505418323;hb=fa145a9f05c90f266754ff5b8e9ff2c81fc5ef3d;hp=07bd83deaf25edaa0ad26223984af8641e4d5f68;hpb=2d6883c97bd82ff276eb36d09ec6ec89a923cc5a;p=gnulib.git diff --git a/lib/mkdir.c b/lib/mkdir.c index 07bd83dea..8495ad94b 100644 --- a/lib/mkdir.c +++ b/lib/mkdir.c @@ -12,8 +12,8 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include @@ -34,8 +34,6 @@ extern int errno; #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) #endif -#include "safe-stat.h" - /* mkdir adapted from GNU tar. */ /* Make directory DPATH, with permission mode DMODE. @@ -57,7 +55,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;