Fixed symlinks test

This commit is contained in:
Pierre Pronchery 2004-08-07 15:33:46 +00:00
parent 27a1a102a8
commit a037ebb6e1

View File

@ -142,9 +142,9 @@ static int _is_file_symlink(char * pathname)
{
struct stat st;
if(stat(pathname, &st) != 0)
if(lstat(pathname, &st) != 0)
return 0;
return S_ISLNK(st.st_mode) ? 1 : 0; /* FIXME */
return S_ISLNK(st.st_mode) ? 1 : 0;
}
static int _is_string_not_empty(char * string)