Ignore:
Timestamp:
Nov 26, 2006, 11:59:24 AM (19 years ago)
Author:
bird
Message:

rename isn't destructive in MSC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gmake/kmkbuiltin/mv.c

    r614 r627  
    264264                return (0);
    265265        }
     266#ifdef _MSC_VER
     267        if (errno == EEXIST) {
     268                remove(to);
     269                if (!rename(from, to)) {
     270                        if (vflg)
     271                                printf("%s -> %s\n", from, to);
     272                        return (0);
     273                }
     274        }
     275#endif
    266276
    267277        if (errno == EXDEV) {
Note: See TracChangeset for help on using the changeset viewer.