From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 92996 invoked by alias); 9 Sep 2016 13:59:28 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 92975 invoked by uid 89); 9 Sep 2016 13:59:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.6 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=nellis, Nellis, unzip, sk:unzip-g X-HELO: USA7109MR005.ACS-INC.COM Received: from usa7109mr005.acs-inc.com (HELO USA7109MR005.ACS-INC.COM) (13.28.230.16) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 09 Sep 2016 13:59:16 +0000 Received: from usa7109ht003.na.xerox.net ([13.41.230.29]) by USA7109MR005.ACS-INC.COM with ESMTP/TLS/AES128-SHA256; 09 Sep 2016 08:59:14 -0500 Received: from USA7109MB022.na.xerox.net ([169.254.6.230]) by USA7109HT003.na.xerox.net ([13.41.230.29]) with mapi id 14.03.0294.000; Fri, 9 Sep 2016 08:59:14 -0500 From: "Nellis, Kenneth" To: "cygwin@cygwin.com" Subject: RE: unzip, find broken by auto handling of .exe file extension Date: Fri, 09 Sep 2016 13:59:00 -0000 Message-ID: <0D835E9B9CD07F40A48423F80D3B5A704BB9586B@USA7109MB022.na.xerox.net> References: <5D13B45DBC02439BB6983CB46A306103@skywavemobile.com> In-Reply-To: <5D13B45DBC02439BB6983CB46A306103@skywavemobile.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-SW-Source: 2016-09/txt/msg00149.txt.bz2 From: Stephen Anderson >=20 > See also: >=20 > http://stackoverflow.com/questions/32467871/unzip-gives-checkdir-error- > directory-exists-but-is-not-a-directory#32468314 >=20 > The fact that 7z handles this and unzip does not indicates that the > problem > is fixable.. FWIW, it seems that the same issue is present with tar: $ touch foo.exe $ mkdir -v foo mkdir: created directory 'foo' $ ls -l total 0 drwxr-x---+ 1 knellis Domain Users 0 Sep 9 09:46 foo -rw-r----- 1 knellis Domain Users 0 Sep 9 09:46 foo.exe $ tar cvf bar.tar foo foo/ $ rmdir -v foo rmdir: removing directory, 'foo' $ tar rvf bar.tar foo foo $ rm -v foo removed 'foo' $ ls -l total 12 -rw-r----- 1 knellis Domain Users 10240 Sep 9 09:47 bar.tar $ tar tf bar.tar foo/ foo $ tar xvf bar.tar foo/ foo $ ls -l total 12 -rw-r----- 1 knellis Domain Users 10240 Sep 9 09:47 bar.tar -rw-r----- 1 knellis Domain Users 0 Sep 9 09:46 foo $ So, tar indicates that it extracted both directory foo/ and file=20 foo, but the result indicates that the file won the conflict. If tar actually did extract the directory first, I'd think that=20 it's next attempt to extract the file with the same name would=20 fail, but that's not what happened. --Ken Nellis -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple