Explorar o código

base: Use stat() instead lstat() for faux_isdir()

Serj Kalichev %!s(int64=5) %!d(string=hai) anos
pai
achega
a201e2b97b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      faux/base/fs.c

+ 1 - 1
faux/base/fs.c

@@ -29,7 +29,7 @@ bool_t faux_isdir(const char *path)
 	if (!path)
 		return BOOL_FALSE;
 
-	if (lstat(path, &statbuf) < 0)
+	if (stat(path, &statbuf) < 0)
 		return BOOL_FALSE;
 
 	if (S_ISDIR(statbuf.st_mode))