From 0f202cbcbab32aa73cc768cd98daef995d5bde8d Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 19 Mar 2023 17:05:35 -0500 Subject: [PATCH] Check in todo notes. --- toys/posix/cpio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/toys/posix/cpio.c b/toys/posix/cpio.c index 1aae0c98..bbcde4b5 100644 --- a/toys/posix/cpio.c +++ b/toys/posix/cpio.c @@ -16,6 +16,8 @@ * We always do --quiet, but accept it as a compatibility NOP. * * TODO: export/import linux file list text format ala gen_initramfs_list.sh + * TODO: hardlink support, -A, -0, -a, -L, --sparse + * TODO: --renumber-archives (probably always?) --ignore-devno --reproducible USE_CPIO(NEWTOY(cpio, "(ignore-devno)(renumber-inodes)(quiet)(no-preserve-owner)R(owner):md(make-directories)uH:p|i|t|F:v(verbose)o|[!pio][!pot][!pF]", TOYFLAG_BIN)) @@ -149,6 +151,7 @@ void cpio_main(void) } if (size != 110 || smemcmp(toybuf, "070701", 6)) error_exit("bad header"); tofree = name = strpad(afd, x8u(toybuf+94), 110); + // TODO: this flushes hardlink detection via major/minor/ino match if (!strcmp("TRAILER!!!", name)) continue; // If you want to extract absolute paths, "cd /" and run cpio. -- 2.39.2