Changeset 41ff85b in mainline for uspace/app/bdsh/compl.c


Ignore:
Timestamp:
2011-07-25T18:26:29Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a2271a3
Parents:
132a6073
Message:

Skip directories that cannot be opened when completing. Fixes a bug where
the shell whould enter an endless loop if you tried to complete a file
residing in a nonexistent directory (or directory that cannot be opened).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/compl.c

    r132a6073 r41ff85b  
    280280
    281281                                cs->dir = opendir(*cs->path);
     282
     283                                /* Skip directories that we fail to open. */
     284                                if (cs->dir == NULL)
     285                                        cs->path++;
    282286                        }
    283287
Note: See TracChangeset for help on using the changeset viewer.