Changeset 3474 for trunk/src


Ignore:
Timestamp:
Sep 16, 2020, 11:13:48 PM (5 years ago)
Author:
bird
Message:

main: Use shfile_stat_isreg in find_dot_file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/main.c

    r3438 r3474  
    378378        char *fullname;
    379379        const char *path = pathval(psh);
    380         struct stat statb;
    381380
    382381        /* don't try this for absolute or relative paths */
     
    385384
    386385        while ((fullname = padvance(psh, &path, basename)) != NULL) {
    387                 if ((shfile_stat(&psh->fdtab, fullname, &statb) == 0) && S_ISREG(statb.st_mode)) {
     386                if (shfile_stat_isreg(&psh->fdtab, fullname) > 0) {
    388387                        /*
    389388                         * Don't bother freeing here, since it will
Note: See TracChangeset for help on using the changeset viewer.