VirtualBox

Changeset 1718 in kBuild


Ignore:
Timestamp:
Sep 3, 2008 1:33:34 PM (16 years ago)
Author:
bird
Message:

kmk_ln: fixed DOS slashes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/kmkbuiltin/ln.c

    r1328 r1718  
    194194            (lstat(source, &sb) == 0 && S_ISDIR(sb.st_mode)) ||
    195195            (!hflag && stat(source, &sb) == 0 && S_ISDIR(sb.st_mode))) {
     196#ifdef _MSC_VER || defined(__OS2__)
     197                char *p2 = strrchr(target, '\\');
     198                p = strrchr(target, '/');
     199                if (p2 != NULL && (p == NULL || p2 > p))
     200                        p = p2;
     201                if (p == NULL)
     202#else
    196203                if ((p = strrchr(target, '/')) == NULL)
     204#endif
    197205                        p = target;
    198206                else
Note: See TracChangeset for help on using the changeset viewer.

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