Ignore:
Timestamp:
Jul 12, 2011, 11:52:39 AM (14 years ago)
Author:
bird
Message:

kmkbuiltins: More specific error messages (solaris EINTR).

File:
1 edited

Legend:

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

    r2206 r2466  
    337337        if (r == -1 && errno != ENOENT) {
    338338                kBuildProtectionTerm(&g_ProtData);
    339                 return err(1, "%s", to.p_path);
     339                return err(1, "stat: %s", to.p_path);
    340340        }
    341341        if (r == -1 || !S_ISDIR(to_stat.st_mode)) {
     
    424424                            && curr->fts_errno == ENOENT) {
    425425                                if (vflag) {
    426                                         warnx("%s: %s", curr->fts_path,
     426                                        warnx("fts: %s: %s", curr->fts_path,
    427427                                              strerror(curr->fts_errno));
    428428                                }
     
    431431                case FTS_DNR:
    432432                case FTS_ERR:
    433                         warnx("%s: %s",
     433                        warnx("fts: %s: %s",
    434434                            curr->fts_path, strerror(curr->fts_errno));
    435435                        badcp = rval = 1;
     
    594594                                if (mkdir(to.p_path,
    595595                                    curr->fts_statp->st_mode | S_IRWXU) < 0)
    596                                         return err(1, "%s", to.p_path);
     596                                        return err(1, "mkdir: %s", to.p_path);
    597597                        } else if (!S_ISDIR(to_stat.st_mode)) {
    598598                                errno = ENOTDIR;
    599                                 return err(1, "%s", to.p_path);
     599                                return err(1, "to-mode: %s", to.p_path);
    600600                        }
    601601                        /*
Note: See TracChangeset for help on using the changeset viewer.