Skip to content

Commit

Permalink
Fixed isLink (use lstat instead of stat)
Browse files Browse the repository at this point in the history
  • Loading branch information
tlrobinson committed Oct 15, 2009
1 parent 5e50111 commit e0e6518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/file-engine.cc
Expand Up @@ -128,7 +128,7 @@ FUNCTION(F_isLink, ARG_UTF8_CAST(path))
ARG_COUNT(1);

struct stat stat_info;
int ret = stat(path, &stat_info);
int ret = lstat(path, &stat_info);

return JS_bool(ret != -1 && S_ISLNK(stat_info.st_mode));
}
Expand Down

0 comments on commit e0e6518

Please sign in to comment.