version 1.183, 2007/01/31 21:07:35 |
version 1.184, 2007/02/07 23:47:56 |
|
|
/* |
/* |
* nfs and afs will show d_type as DT_UNKNOWN |
* nfs and afs will show d_type as DT_UNKNOWN |
* for files and/or directories so when we encounter |
* for files and/or directories so when we encounter |
* this we call stat() on the path to be sure. |
* this we call lstat() on the path to be sure. |
*/ |
*/ |
if (dp->d_type == DT_UNKNOWN) { |
if (dp->d_type == DT_UNKNOWN) { |
if (stat(fpath, &st) == -1) |
if (lstat(fpath, &st) == -1) |
fatal("'%s': %s", fpath, |
fatal("'%s': %s", fpath, |
strerror(errno)); |
strerror(errno)); |
|
|