Subversion Repositories HelenOS

Rev

Rev 4668 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4668 Rev 4688
Line 87... Line 87...
87
static void ls_print(const char *name, const char *pathname)
87
static void ls_print(const char *name, const char *pathname)
88
{
88
{
89
    struct stat s;
89
    struct stat s;
90
    int rc;
90
    int rc;
91
 
91
 
92
    if (rc = stat(pathname, &s)) {
92
    rc = stat(pathname, &s);
-
 
93
    if (rc != 0) {
93
        /* Odd chance it was deleted from the time readdir() found it */
94
        /* Odd chance it was deleted from the time readdir() found it */
94
        printf("ls: skipping bogus node %s\n", pathname);
95
        printf("ls: skipping bogus node %s\n", pathname);
95
        printf("rc=%d\n", rc);
96
        printf("rc=%d\n", rc);
96
        return;
97
        return;
97
    }
98
    }