# HG changeset patch # User Pascal Bellard # Date 1417426695 -3600 # Node ID f12aae0b96975b0dddc25cf9c91baea4eacd5c9e # Parent 7a3e592e7c6a3ff51ff4a95d442a0f7861f84ff1 busybox: fake GNU cpio for symlinks diff -r 7a3e592e7c6a -r f12aae0b9697 busybox/receipt --- a/busybox/receipt Sat Nov 29 13:37:18 2014 +0100 +++ b/busybox/receipt Mon Dec 01 10:38:15 2014 +0100 @@ -45,6 +45,7 @@ losetup.u fatattr.u fbvnc.u +cpio.u EOT cp $stuff/$PACKAGE-${VERSION%.*}.config .config } diff -r 7a3e592e7c6a -r f12aae0b9697 busybox/stuff/busybox-1.22-cpio.u --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/busybox/stuff/busybox-1.22-cpio.u Mon Dec 01 10:38:15 2014 +0100 @@ -0,0 +1,12 @@ +--- busybox-1.22.0/archival/cpio.c ++++ busybox-1.22.0/archival/cpio.c +@@ -225,6 +225,9 @@ + if (!(S_ISLNK(st.st_mode) || S_ISREG(st.st_mode))) + st.st_size = 0; /* paranoia */ + ++ if (S_ISLNK(st.st_mode)) ++ st.st_nlink = 1; /* like GNU cpio */ ++ + /* Store hardlinks for later processing, dont output them */ + if (!S_ISDIR(st.st_mode) && st.st_nlink > 1) { + struct name_s *n;