AW: AW: Issue with tar (Busybox 1.20.2): unknown file type

piquemal michel michel_piquemal at yahoo.fr
Sun Jun 23 07:40:26 UTC 2013


Thanks Dietmar.

Did add printf (bb_error_msg) in libbb/recursive_action.c:recursive_action(), after
status = (follow ? stat : lstat)(fileName, &statbuf)

bb_error_msg("status=%d flags=%x  statbuf.st_ino=%d statbuf.st_mode=%d", status, flags, statbuf.st_ino, statbuf.st_mode);

and compiled 2 versions: one static (that works), and one dynamic.


I tryied to tar tst directory (which contains 2 files) with the 2 compiled versions:

# busybox_stat tar -cf toto.tar tst
tar: status=0 flags=1  statbuf.st_ino=838 statbuf.st_mode=16877
tar: status=0 flags=1  statbuf.st_ino=861 statbuf.st_mode=33188
tar: status=0 flags=1  statbuf.st_ino=857 statbuf.st_mode=33188

# busybox_dyn tar -cf toto.tar tst 

tar: status=0 flags=1  statbuf.st_ino=0 statbuf.st_mode=838
tar: tst: unknown file type
tar: error exit delayed from previous errors

I guess you found where the problem is...



More information about the busybox mailing list