wok-6.x rev 17414
busybox: fake GNU cpio for symlinks
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Dec 01 10:38:15 2014 +0100 (2014-12-01) |
parents | 7a3e592e7c6a |
children | 90f3c26ffd86 |
files | busybox/receipt busybox/stuff/busybox-1.22-cpio.u |
line diff
1.1 --- a/busybox/receipt Sat Nov 29 13:37:18 2014 +0100 1.2 +++ b/busybox/receipt Mon Dec 01 10:38:15 2014 +0100 1.3 @@ -45,6 +45,7 @@ 1.4 losetup.u 1.5 fatattr.u 1.6 fbvnc.u 1.7 +cpio.u 1.8 EOT 1.9 cp $stuff/$PACKAGE-${VERSION%.*}.config .config 1.10 }
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/busybox/stuff/busybox-1.22-cpio.u Mon Dec 01 10:38:15 2014 +0100 2.3 @@ -0,0 +1,12 @@ 2.4 +--- busybox-1.22.0/archival/cpio.c 2.5 ++++ busybox-1.22.0/archival/cpio.c 2.6 +@@ -225,6 +225,9 @@ 2.7 + if (!(S_ISLNK(st.st_mode) || S_ISREG(st.st_mode))) 2.8 + st.st_size = 0; /* paranoia */ 2.9 + 2.10 ++ if (S_ISLNK(st.st_mode)) 2.11 ++ st.st_nlink = 1; /* like GNU cpio */ 2.12 ++ 2.13 + /* Store hardlinks for later processing, dont output them */ 2.14 + if (!S_ISDIR(st.st_mode) && st.st_nlink > 1) { 2.15 + struct name_s *n;