summaryrefslogtreecommitdiff
path: root/archival/bbunzip.c
diff options
context:
space:
mode:
Diffstat (limited to 'archival/bbunzip.c')
-rw-r--r--archival/bbunzip.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/archival/bbunzip.c b/archival/bbunzip.c
index 327b3cf2c..90d39f682 100644
--- a/archival/bbunzip.c
+++ b/archival/bbunzip.c
@@ -256,10 +256,24 @@ USE_DESKTOP(long long) int unpack_gunzip(void)
256 return status; 256 return status;
257} 257}
258 258
259/*
260 * Linux kernel build uses gzip -d -n. We accept and ignore it.
261 * Man page says:
262 * -n --no-name
263 * gzip: do not save the original file name and time stamp.
264 * (The original name is always saved if the name had to be truncated.)
265 * gunzip: do not restore the original file name/time even if present
266 * (remove only the gzip suffix from the compressed file name).
267 * This option is the default when decompressing.
268 * -N --name
269 * gzip: always save the original file name and time stamp (this is the default)
270 * gunzip: restore the original file name and time stamp if present.
271 */
272
259int gunzip_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 273int gunzip_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
260int gunzip_main(int argc ATTRIBUTE_UNUSED, char **argv) 274int gunzip_main(int argc ATTRIBUTE_UNUSED, char **argv)
261{ 275{
262 getopt32(argv, "cfvdt"); 276 getopt32(argv, "cfvdtn");
263 argv += optind; 277 argv += optind;
264 /* if called as zcat */ 278 /* if called as zcat */
265 if (applet_name[1] == 'c') 279 if (applet_name[1] == 'c')