Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Patch tar call #92
I changed only one line in your "archive.rb", cause it rose an error on my FreeBSD machines. The installed "tar"-utility (which is distributed with the base system) has a nasty default for output:
(look at the "-f" parameter)
[root@www1 ~]# tar --help tar(bsdtar): manipulate archive files First option must be a mode specifier: -c Create -r Add/Replace -t List -u Update -x Extract Common Options: -b # Use # 512-byte records per I/O block -f Location of archive (default /dev/sa0) -v Verbose -w Interactive (...) bsdtar 2.7.0 - libarchive 2.7.0
The correspondenting error:
[root@www1 ~]# tar -c . 1> bla.tar tar: Failed to open '/dev/sa0' [root@www1 ~]# tar -c -f bla.tar . [root@www1 ~]#
Hope this finds the way back in your nice piece of software.
Kind regards, Stefan
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
Ah ... I forgot to say that I tested this on several Linux machines too; every version of tar known by me support the "-f" parm but there may exist versions that won't handle this. This should be reviewed by someone else, who is more in the Linux business. ;-)