Hi, >During the busybox-1.13.4 test, I have observed that the testsuite/cpio.tests >contains a test which uses the '-H' option of cpio: > >"find cpio.testdir | cpio -H newc --create | (cd cpio.testdir2 && cpio -i); >echo \$?; > >However, the '-H' option is not present in the busybox version of cpio. > >-bash-3.2# cpio -H >cpio: invalid option -- 'H' >BusyBox v1.13.4 (2009-04-30 13:06:21 JST) multi-call binary > >Usage: cpio -[dimtuv][F cpiofile] > >Extract or list files from a cpio archive >Main operation mode: > d Make leading directories > i Extract > m Preserve mtime > t List > v Verbose > u Unconditional overwrite > F Input from file > >Should I enable any other option in .config of busybox for the "cpio >extracts >zero-sized hardlinks" test ?
I have re-tested the busybox-1.13.4 after making the below listed changes: 1. enabled 'CONFIG_FEATURE_CPIO_O=y' in busybox .config file. 2. Patched 'cpio.tests' file using the below listed patch After that, 'cpio extracts zero-sized hardlinks' test passed: "PASS: cpio extracts zero-sized hardlinks 2" Patch for 'cpio.tests' file ---------------------- --- /tmp/cpio.tests 2008-11-09 17:28:19.000000000 +0000 +++ cpio.tests 2009-05-27 09:13:46.000000000 +0000 @@ -68,6 +68,7 @@ "find cpio.testdir | cpio -H newc --create | (cd cpio.testdir2 && cpio -i); echo \$?; ls -ln cpio.testdir2/cpio.testdir | $FILTER_LS" \ "\ +2 blocks 0 -rw-r--r-- 2 $user $group 0 empty -rw-r--r-- 2 $user $group 0 empty1
_______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
