Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E0066160C15 for ; Wed, 3 Jan 2018 16:47:51 +0100 (CET) Received: (qmail 72644 invoked by uid 500); 3 Jan 2018 15:47:50 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 72633 invoked by uid 99); 3 Jan 2018 15:47:50 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jan 2018 15:47:50 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 1D24218033A for ; Wed, 3 Jan 2018 15:47:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.279 X-Spam-Level: * X-Spam-Status: No, score=1.279 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id ifiw2VaeUWeh for ; Wed, 3 Jan 2018 15:47:44 +0000 (UTC) Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 395D85F3B5 for ; Wed, 3 Jan 2018 15:47:44 +0000 (UTC) X-Originating-IP: 209.85.161.178 Received: from mail-yw0-f178.google.com (mail-yw0-f178.google.com [209.85.161.178]) (Authenticated sender: gmail@vafer.org) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id EE166C5A49 for ; Wed, 3 Jan 2018 16:47:36 +0100 (CET) Received: by mail-yw0-f178.google.com with SMTP id m129so681678ywb.11 for ; Wed, 03 Jan 2018 07:47:36 -0800 (PST) X-Gm-Message-State: AKGB3mLXESZdaL6cx78PL4z7z5LtCb0umjVPmCOVUJYXWMC7u5Ukulvf ZFEjkV2xuXmhn1fujq0AnoE80w8db7wclppJOpE= X-Google-Smtp-Source: ACJfBosKYahXIrAOb2KwE84ZOals5pFBnbwRyHxqPe3/Mcsdv0sHIYBxktcTdTalBEjl3zoZ054dDE/3dKCz/8FgcHU= X-Received: by 10.129.76.198 with SMTP id z189mr1672463ywa.178.1514994455785; Wed, 03 Jan 2018 07:47:35 -0800 (PST) MIME-Version: 1.0 Received: by 10.37.160.100 with HTTP; Wed, 3 Jan 2018 07:46:55 -0800 (PST) From: Torsten Curdt Date: Wed, 3 Jan 2018 16:46:55 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: [compress] TarArchiveEntry and Windows drive letter To: Commons Developers List Content-Type: multipart/alternative; boundary="001a113f1ea45fbd580561e1221a" archived-at: Wed, 03 Jan 2018 15:47:52 -0000 --001a113f1ea45fbd580561e1221a Content-Type: text/plain; charset="UTF-8" I just found a new issue with compress. It's the "normalizeFileName" in TarArchiveEntry again. On Windows it just strips the drive letter https://github.com/apache/commons-compress/blob/master/src/ main/java/org/apache/commons/compress/archivers/tar/ TarArchiveEntry.java#L1337 which I think is a questionable default behaviour IMO. TarArchiveEntry("C:\foo\bar") -> "/foo/bar" TarArchiveEntry("D:\foo\bar") -> "/foo/bar" Is that in line with how other unix tool ports handle things on windows? cheers, Torsten PS: Just for you sebb ;) --001a113f1ea45fbd580561e1221a--