Przeglądaj źródła

* is_symlink needed lstat() not stat()

svn: 177
Bryan Drewery 23 lat temu
rodzic
commit
d6e399287e
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/misc_file.c

+ 1 - 1
src/misc_file.c

@@ -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;