I'm using this module on a Solaris machine. The default tar is not gnu tar, and does not support all the options.
The module worked anyway by using Archive/Tar.php.

I found these messages in the apache error log:

tar: s: unknown function modifier
Usage: tar {c|r|t|u|x}[BDeEFhilmnopPqTvw@[0-7]][bfk][X...] [blocksize] [tarfile] [size] [exclude-file...] {file | -I include-file | -C directory file}...
tar: z: unknown function modifier
Usage: tar {c|r|t|u|x}[BDeEFhilmnopPqTvw@[0-7]][bfk][X...] [blocksize] [tarfile] [size] [exclude-file...] {file | -I include-file | -C directory file}...

It would just be nice to avoid putting those errors in the log.

Comments

Anonymous’s picture

That sounds good. Maybe we should check to make sure that we have not only tar, but GNU tar.

tomotomo’s picture

Also an issue on BSDs. The issue is non-gnu tar, classic tar.

tomotomo’s picture

Also, the title isn't about tar's options but about the path. Just "tar" isn't enough, but /bin/tar is, but should be configurable.