Rev 53 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 53 | Rev 54 | ||
---|---|---|---|
Line 68... | Line 68... | ||
68 | retval = readdir_r( dir, &entry, &entryPtr ); |
68 | retval = readdir_r( dir, &entry, &entryPtr ); |
69 | while( entryPtr != NULL ) |
69 | while( entryPtr != NULL ) |
70 | { |
70 | { |
71 | struct stat entryInfo; |
71 | struct stat entryInfo; |
72 | 72 | ||
73 | if( ( ! strncmp( entry.d_name, ".", PATH_MAX2 ) == 0 ) && |
73 | if( ( strncmp( entry.d_name, ".", PATH_MAX2 ) != 0 ) && |
74 | ( ! strncmp( entry.d_name, "..", PATH_MAX2 ) == 0 ) ) |
74 | ( strncmp( entry.d_name, "..", PATH_MAX2 ) != 0 ) ) |
75 | { |
75 | { |
76 | sprintf(pfile,"%s/%s", curdir2, entry.d_name); |
76 | sprintf(pfile,"%s/%s", curdir2, entry.d_name); |
77 | if (isdir(entry.d_name) && ! issymlink(entry.d_name)) |
77 | if (isdir(entry.d_name) && ! issymlink(entry.d_name)) |
78 | { |
78 | { |
79 | printf("%s\n", pfile); |
79 | printf("%s\n", pfile); |