Bug 8631

Summary: tar exclude file not honored correctly
Product: Busybox Reporter: Andy <andy>
Component: Standard ComplianceAssignee: unassigned
Status: NEW ---    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: 1.24.x   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description Andy 2016-01-23 16:16:38 UTC
tar tries to process files even if in -X exclude-file.list. The same command with GNU tar executes without error.

$ cat /opt/.filetool.lst 
opt
home

$ cat /opt/.xfiletool.lst 
home/tc/hgfs

$ sudo /bin/tar -C / -X /opt/.xfiletool.lst -T /opt/.filetool.lst -czf /mnt/sda1/tar-test.tgz
tar: home/tc/hgfs: Permission denied
tar: error exit delayed from previous errors