diff --git a/misc/tools-source/getfiles.c b/misc/tools-source/getfiles.c index 71bd17a78..b9aa18193 100644 --- a/misc/tools-source/getfiles.c +++ b/misc/tools-source/getfiles.c @@ -34,7 +34,7 @@ int main(int argc, char ** argv) { while ( fgets(buf, 512, stdin) != NULL && (fn = strchr(buf, ' ')) != NULL ) { if ( (n = strchr(++fn, '\n')) != NULL ) *n = '\0'; - if ( !lstat(fn,&st) && S_ISREG(st.st_mode) ) + if ( !stat(fn,&st) && S_ISREG(st.st_mode) ) puts(fn); } return 0;