Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve the metadata of input files #124

Open
sorairolake opened this issue Jan 10, 2024 · 1 comment
Open

Preserve the metadata of input files #124

sorairolake opened this issue Jan 10, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@sorairolake
Copy link
Contributor

sorairolake commented Jan 10, 2024

Other commands such as gzip and zstd preserve the metadata (permissions, mtime, etc.) of input files (original files), but bzip3 does not seem to do so. Like other commands, I think it is desirable for bzip3 to preserve as much of the metadata of input files as possible.

$ bzip3 -V
bzip3 1.4.0
Copyright (C) by Kamila Szewczyk, 2022-2023.
License: GNU Lesser GPL version 3 <https://www.gnu.org/licenses/lgpl-3.0.en.html>
$ eza -lg bz3cat*
.r--r--r-- 40 1000 100 10 Jan 00:20 bz3cat
.r--r--r-- 16 1000 100 10 Jan 00:20 bz3cat.1
$ gzip bz3cat ; bzip3 bz3cat.1 && rm bz3cat.1
$ eza -lg bz3cat*
.rw-r--r-- 41 root root 10 Jan 10:24 bz3cat.1.bz3
.r--r--r-- 67 1000 100  10 Jan 00:20 bz3cat.gz
$ chmod -w bz3cat.1.bz3 && eza -lg bz3cat*
.r--r--r-- 41 root root 10 Jan 10:24 bz3cat.1.bz3
.r--r--r-- 67 1000 100  10 Jan 00:20 bz3cat.gz
$ gunzip bz3cat.gz ; bunzip3 bz3cat.1.bz3 && rm bz3cat.1.bz3
$ eza -lg bz3cat*
.r--r--r-- 40 1000 100  10 Jan 00:20 bz3cat
.rw-r--r-- 16 root root 10 Jan 10:26 bz3cat.1

See also: facebook/zstd#3432

@kspalaiologos
Copy link
Owner

Agreed, I will look into it.

@kspalaiologos kspalaiologos added the enhancement New feature or request label Jan 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants