Permalink
Browse files

* is_symlink needed lstat() not stat()

svn: 177
  • Loading branch information...
1 parent 90985a6 commit d6e399287e0b86ea5f20232b0c17abbd92734ca8 @bdrewery bdrewery committed Nov 12, 2003
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/misc_file.c
View
@@ -113,7 +113,7 @@ int can_lstat(const char *s)
int is_symlink(const char *s)
{
struct stat ss;
- int i = stat(s, &ss);
+ int i = lstat(s, &ss);
if (i < 0)
return 0;

0 comments on commit d6e3992

Please sign in to comment.