VirtualBox

Changeset 2480 in kBuild


Ignore:
Timestamp:
Jul 20, 2011 2:18:21 PM (14 years ago)
Author:
bird
Message:

kmk_install,kmk: install fixes.

Location:
trunk/src/kmk
Files:
2 edited

Legend:

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

    r2476 r2480  
    346346                    to_sb.st_dev != 0 &&
    347347                    to_sb.st_ino == from_sb.st_ino &&
    348                     to_sb.st_ino != 0)
     348                    to_sb.st_ino != 0 &&
     349                    !hard_link_files_when_possible)
    349350                        return errx(EX_USAGE,
    350351                                    "%s and %s are the same file", *argv, to_name);
     
    448449                } else if (safecopy) {
    449450                        why_not = "safe copy (-S)";
    450                 } else if (mode_given && mode != (from_sb.st_mode & ALLPERMS)) {
     451                } 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);
    451453                        why_not = "mode mismatch";
    452454                } else if (uid != (uid_t)-1 && gid != from_sb.st_uid) {
  • trunk/src/kmk/variable.c

    r2452 r2480  
    12991299  && defined (KMK_HELPERS)
    13001300  (void) define_variable ("KMK_FEATURES", 12,
    1301                           "append-dash-n abspath includedep-queue"
     1301                          "append-dash-n abspath includedep-queue install-hard-linking"
    13021302                          " rsort"
    13031303                          " abspathex"
     
    13271327# else /* MSC can't deal with strings mixed with #if/#endif, thus the slow way. */
    13281328#  error "All features should be enabled by default!"
    1329   strcpy (buf, "append-dash-n abspath includedep-queue");
     1329  strcpy (buf, "append-dash-n abspath includedep-queue install-hard-linking");
    13301330#  if defined (CONFIG_WITH_RSORT)
    13311331  strcat (buf, " rsort");
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