David Cantrell > App-Rsnapshot > App::Rsnapshot::CheckGNUcp

Download:
App-Rsnapshot-1.999_00002.tar.gz

Dependencies

Annotate this POD

Module Version: 1.0   Source  

NAME ^

App::Rsnapshot::CheckGNUcp - check that a binary is GNU cp

SYNOPSIS ^

    my $isgnucp = App::Rsnapshot::CheckGNUcp::isgnucp($binary);

DESCRIPTION ^

Provides a function to attempt to figure out whether a given binary is GNU cp or not.

FUNCTIONS ^

isgnucp

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.

BUGS/WARNINGS/LIMITATIONS ^

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.

SOURCE CODE REPOSITORY ^

http://www.cantrell.org.uk/cgit/cgit.cgi/rsnapshot-ng/

AUTHOR, COPYRIGHT and LICENCE ^

Copyright 2009 David Cantrell <david@cantrell.org.uk>

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.

CONSPIRACY ^

This module is also free-as-in-mason software.

syntax highlighting: