Ignore:
Timestamp:
2002-12-10T15:18:12+13:00 (21 years ago)
Author:
jrm21
Message:

hard_link returns 1 on error. (But not if it attempts to copy - always
returns 0!!)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/util.pm

    r2974 r3628  
    288288    elsif (!-e $src) {
    289289    print STDERR "util::hard_link source file $src does not exist\n";
    290     return;
     290    return 1;
    291291    }
    292292    elsif (-d $src) {
    293293    print STDERR "util::hard_link source $src is a directory\n";
    294     return;
     294    return 1;
    295295    }
    296296
     
    307307    &File::Copy::copy ($src, $dest);
    308308    }
     309    return 0;
    309310}
    310311
Note: See TracChangeset for help on using the changeset viewer.