This came up at dayjob a couple of weeks ago and again today.
A nice feature of GNU tar is the removal of leading slashes in an archive. For instance if an archive foobar.tar contains files /foo and /bar the following command in a GNU Linux system:
cp foobar.tar /test
tar xvf foobar.tar
Will generate /test/foo and /test/bar. Not so with a Solaris 10 system, where the files will be placed in the root directory.
Thanksfully there is a trivial workaround to remove the leading slash:
pax -rv -s ',^/,,' -f foobar.tar
A workaround now documented in a convenient place, rather than me having to search for it in either the bash history of a random system or an interesting but rather lengthy manpage.