App::Rsnapshot::CheckGNUcp - check that a binary is GNU cp
my $isgnucp = App::Rsnapshot::CheckGNUcp::isgnucp($binary);
Provides a function to attempt to figure out whether a given binary is GNU cp or not.
This function will be exported if you ask for it thus:
use App::Rsnapshot::CheckGNUcp qw(isgnucp);
Takes a filename (with path) and returns true if it is GNU cp, false otherwise.
This is a heuristic. That means that it can be wrong. Bug reports are most welcome, and should include the output from 'cp --version' as well as, of course, telling me what the bug is.
The check is actually whether 'cp -al blah/foo blah/bar' results in two files with the same inode number.
Copyright 2009 David Cantrell <email@example.com>
This software is free-as-in-speech software, and may be used, distributed, and modified under the terms of either the GNU General Public Licence version 2 or the Artistic Licence. It's up to you which one you use. The full text of the licences can be found in the files GPL2.txt and ARTISTIC.txt, respectively.
This module is also free-as-in-mason software.