From: Jim Meyering Date: Sat, 12 May 2001 09:58:03 +0000 (+0000) Subject: (copy_internal): Remove the code that tested for NULL X-Git-Tag: CPPI-1_9~160 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=b2604c5d125b2489ee8ff677992af95e25fa6ecf;p=thirdparty%2Fcoreutils.git (copy_internal): Remove the code that tested for NULL dir_name return value. That can't happen. --- diff --git a/src/copy.c b/src/copy.c index 1f8c40a20b..d0aad251be 100644 --- a/src/copy.c +++ b/src/copy.c @@ -937,8 +937,6 @@ copy_internal (const char *src_path, const char *dst_path, int in_current_dir; dst_parent = dir_name (dst_path); - if (dst_parent == NULL) - xalloc_die (); in_current_dir = (STREQ (".", dst_parent) /* If either stat call fails, it's ok not to report