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

kmk_install,kmk: install fixes.

File:
1 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) {
Note: See TracChangeset for help on using the changeset viewer.