From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F2C29385C017; Tue, 24 Mar 2020 15:15:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F2C29385C017 From: "guillaume.audirac at gmail dot com" To: bzip2-devel@sourceware.org Subject: [Bug bzip2/25719] New: uncompress with soft and hard links Date: Tue, 24 Mar 2020 15:15:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: bzip2 X-Bugzilla-Component: bzip2 X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: guillaume.audirac at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: nobody at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: bzip2-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Bzip2-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Mar 2020 15:15:33 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D25719 Bug ID: 25719 Summary: uncompress with soft and hard links Product: bzip2 Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: bzip2 Assignee: nobody at sourceware dot org Reporter: guillaume.audirac at gmail dot com CC: bzip2-devel at sourceware dot org Target Milestone: --- Hi, I've got issues with bzip2 when using symbolic and hard links (quite useful= for Yocto generated images). I'm using Linux Mint 19.3 and bzip2 version 1.0.6 (6-sept-2010). I know the latest release is 1.0.8 but I could not find any related info in git log history. # I have a bz2 file and soft and hard links to it. $ ln -s my_file.bz2 my_softlink $ ln my_file.bz2 my_hardlink # Then I try to uncompress it through the symbolic link $ bzip2 -d my_softlink bzip2: Input file my_softlink is not a normal file. # Now I try to uncompress it using the hard link $ bzip2 -d my_hardlink bzip2: Can't guess original name for my_hardlink -- using my_hardlink.out bzip2: Input file my_hardlink has 1 other link. For the 2 cases, using the -k option does not help. For soft links, it would be nice to allow to follow the symlink with another option, while keeping the input file ('-k'). For hard links, I assume it should work with '-k' when uncompressing. Regards. --=20 You are receiving this mail because: You are on the CC list for the bug.=