/branches/dd/uspace/app/bdsh/cmds/modules/ls/ls.c |
---|
89,7 → 89,8 |
struct stat s; |
int rc; |
if (rc = stat(pathname, &s)) { |
rc = stat(pathname, &s); |
if (rc != 0) { |
/* Odd chance it was deleted from the time readdir() found it */ |
printf("ls: skipping bogus node %s\n", pathname); |
printf("rc=%d\n", rc); |
/branches/dd/uspace/app/bdsh/cmds/modules/ls/ls.h |
---|
6,8 → 6,6 |
#define LS_FILE 1 |
#define LS_DIR 2 |
static unsigned int ls_scope(const char *); |
static void ls_scan_dir(const char *, DIR *); |
static void ls_print(const char *, const char *); |