VirtualBox

Changeset 627 in kBuild


Ignore:
Timestamp:
Nov 26, 2006 10:59:24 AM (18 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.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette