Switch to unified view
a/src/utils/fstreewalk.cpp | b/src/utils/fstreewalk.cpp | ||
---|---|---|---|
1 | #ifndef lint |
1 | #ifndef lint |
2 | static char rcsid[] = "@(#$Id: fstreewalk.cpp,v 1.5 2005-11-24 07:16:16 dockes Exp $ (C) 2004 J.F.Dockes"; |
2 | static char rcsid[] = "@(#$Id: fstreewalk.cpp,v 1.6 2005-12-13 12:42:59 dockes Exp $ (C) 2004 J.F.Dockes"; |
3 | #endif |
3 | #endif |
4 | 4 | ||
5 | #ifndef TEST_FSTREEWALK |
5 | #ifndef TEST_FSTREEWALK |
6 | 6 | ||
7 | #include <dirent.h> |
7 | #include <dirent.h> |
... |
... |
||
126 | } |
126 | } |
127 | } |
127 | } |
128 | } |
128 | } |
129 | 129 | ||
130 | { |
130 | { |
131 | string fn = top; |
||
132 | path_cat(fn, ent->d_name);
|
131 | string fn = path_cat(top, ent->d_name); |
133 | 132 | ||
134 | struct stat st; |
133 | struct stat st; |
135 | int statret = (data->options & FtwFollow) ? stat(fn.c_str(), &st) : |
134 | int statret = (data->options & FtwFollow) ? stat(fn.c_str(), &st) : |
136 | lstat(fn.c_str(), &st); |
135 | lstat(fn.c_str(), &st); |
137 | if (statret == -1) { |
136 | if (statret == -1) { |