VirtualBox

Changeset 2543 in kBuild


Ignore:
Timestamp:
Aug 17, 2011 6:24:21 AM (14 years ago)
Author:
bird
Message:

install.c: Don't try hardlink symlink and other non-regular files.

File:
1 edited

Legend:

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

    r2500 r2543  
    452452                } else if (safecopy) {
    453453                        why_not = "safe copy (-S)";
     454                } else if (lstat(from_name, &temp_sb)) {
     455                        why_not = "lstat on source failed";
     456                } else if (S_ISLNK(temp_sb.st_mode)) {
     457                        why_not = "symlink";
     458                } else if (!S_ISREG(temp_sb.st_mode)) {
     459                        why_not = "not regular file";
    454460# if defined(KBUILD_OS_WINDOWS) || defined(KBUILD_OS_OS2)
    455461                } else if ((mode & S_IWUSR) != (from_sb.st_mode & S_IWUSR)) {
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