VirtualBox

Changeset 2482 in kBuild for trunk/src


Ignore:
Timestamp:
Jul 21, 2011 1:29:14 PM (14 years ago)
Author:
bird
Message:

kmk_install: always warn if mode prevents hard linking.

File:
1 edited

Legend:

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

    r2480 r2482  
    450450                        why_not = "safe copy (-S)";
    451451                } else if (mode != (from_sb.st_mode & ALLPERMS)) {
    452                         printf("mode=%04o st_mode=%04o (%s)\n", mode, (from_sb.st_mode & ALLPERMS), from_name);
    453                         why_not = "mode mismatch";
     452                        printf("install: warning: Not hard linking, mode differs: 0%03o, desires 0%03o\n"
     453                               "install: src path '%s'\n"
     454                               "install: dst path '%s'\n",
     455                               (from_sb.st_mode & ALLPERMS), mode, from_name, to_name);
     456                        why_not = NULL;
    454457                } else if (uid != (uid_t)-1 && gid != from_sb.st_uid) {
    455458                        why_not = "uid mismatch";
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