IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13579


Ignore:
Timestamp:
May 31, 2007, 3:00:26 PM (19 years ago)
Author:
Paul Price
Message:

Fixing return value from system call.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PS-IPP-Config/lib/PS/IPP/Config.pm

    r13574 r13579  
    11# Copyright (c) 2006  Paul Price, Joshua Hoblitt
    22#
    3 # $Id: Config.pm,v 1.50 2007-05-31 22:11:49 price Exp $
     3# $Id: Config.pm,v 1.51 2007-06-01 01:00:26 price Exp $
    44
    55package PS::IPP::Config;
     
    382382    $source = $self->file_resolve( $source );
    383383
    384     system "cp $source $target" or (carp "Can't copy file $source to $target." and
    385                                     exit($PS_EXIT_DATA_ERROR));
     384    system("cp $source $target") == 0 or (carp "Can't copy file $source to $target." and
     385                                          exit($PS_EXIT_DATA_ERROR));
    386386    return 1;
    387387}
Note: See TracChangeset for help on using the changeset viewer.