]> git.e2factory.org Git - e2factory.git/commitdiff
e2lib: document unlink_recursive() does not follow symlinks
authorTobias Ulmer <tu@emlix.com>
Fri, 2 Sep 2016 09:19:25 +0000 (11:19 +0200)
committerTobias Ulmer <tu@emlix.com>
Wed, 16 Nov 2016 14:41:18 +0000 (15:41 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/e2lib.lua

index 1f0cdabd2ca146441110baabce196b7624d97aeb..389883a384752bbd897d2d44740d9374bce78f63 100644 (file)
@@ -1852,7 +1852,7 @@ function e2lib.unlink_recursive(pathname)
 
         filepath = e2lib.join(pathname, file)
 
-        de, re = e2lib.stat(filepath)
+        de, re = e2lib.stat(filepath, false) -- do not follow links
         if not de then
             return false, re
         end