Changeset 3209 for trunk


Ignore:
Timestamp:
Apr 24, 2007, 11:51:30 PM (18 years ago)
Author:
bird
Message:

kLIBC has inode and dev that are pretty much reliable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/essentials/dev-lang/perl/lib/File/Copy.pm

    r3181 r3209  
    8282
    8383    if ((($Config{d_symlink} && $Config{d_readlink}) || $Config{d_link}) &&
    84         !($^O eq 'MSWin32' || $^O eq 'os2' || $^O eq 'vms')) {
     84        !($^O eq 'MSWin32' || $^O eq 'vms')) {
    8585        my @fs = stat($from);
    8686        if (@fs) {
    8787            my @ts = stat($to);
    88             if (@ts && $fs[0] == $ts[0] && $fs[1] == $ts[1]) {
     88            if (@ts && $fs[0] == $ts[0] && $fs[1] == $ts[1] &&
     89                ($^O ne 'os2' || ($fs[0] != 0 && $fs[1] != 0))) {
    8990                carp("'$from' and '$to' are identical (not copied)");
    9091                return 0;
Note: See TracChangeset for help on using the changeset viewer.