[Bug 15985] New: tar with multiple -C incorrectly processes them

bugzilla at busybox.net bugzilla at busybox.net
Mon Mar 11 22:08:23 UTC 2024


https://bugs.busybox.net/show_bug.cgi?id=15985

            Bug ID: 15985
           Summary: tar with multiple -C incorrectly processes them
           Product: Busybox
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Standard Compliance
          Assignee: unassigned at busybox.net
          Reporter: yuriastrakhan at gmail.com
                CC: busybox-cvs at busybox.net
  Target Milestone: ---

The standard tar can take multiple `-C` params (change dir before compressing),
so if I have multiple files in multiple dirs, I can tar them all by prepending
each subset of files with their directory:

```
tar -czf newfile.tar.gz \
         -C $PWD/dir1 file1 file2 \
         -C $PWD/dir2 file3 file4
```

Busybox tar ignores all but the last `-C`, which results in `file1` and `file2`
not found.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list