From f9f2117d5b7057f986850741b85bde5c30590b02 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Fri, 30 Mar 2012 16:11:26 +0100 Subject: Update mingw.c from latest git/compat --- libbb/copy_file.c | 5 ----- libbb/recursive_action.c | 5 ----- 2 files changed, 10 deletions(-) (limited to 'libbb') diff --git a/libbb/copy_file.c b/libbb/copy_file.c index 48aaf481d..be65c4b47 100644 --- a/libbb/copy_file.c +++ b/libbb/copy_file.c @@ -85,12 +85,7 @@ int FAST_FUNC copy_file(const char *source, const char *dest, int flags) /* Inverse of cp -d ("cp without -d") */ #define FLAGS_DEREF (flags & (FILEUTILS_DEREFERENCE + FILEUTILS_DEREFERENCE_L0)) -#if ENABLE_PLATFORM_MINGW32 - /* stat can't be aliased, and MinGW uses lstat anyway */ - if (lstat(source, &source_stat) < 0) { -#else if ((FLAGS_DEREF ? stat : lstat)(source, &source_stat) < 0) { -#endif /* This may be a dangling symlink. * Making [sym]links to dangling symlinks works, so... */ if (flags & (FILEUTILS_MAKE_SOFTLINK|FILEUTILS_MAKE_HARDLINK)) diff --git a/libbb/recursive_action.c b/libbb/recursive_action.c index 560c93cad..b5cf7c0ab 100644 --- a/libbb/recursive_action.c +++ b/libbb/recursive_action.c @@ -73,12 +73,7 @@ int FAST_FUNC recursive_action(const char *fileName, if (depth == 0) follow = ACTION_FOLLOWLINKS | ACTION_FOLLOWLINKS_L0; follow &= flags; -#if ENABLE_PLATFORM_MINGW32 - /* stat can't be aliased, and MinGW uses lstat anyway */ - status = lstat(fileName, &statbuf); -#else status = (follow ? stat : lstat)(fileName, &statbuf); -#endif if (status < 0) { #ifdef DEBUG_RECURS_ACTION bb_error_msg("status=%d flags=%x", status, flags); -- cgit v1.2.3-55-g6feb