]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Revert "ply-utils: Use lstat instead of stat for ply_file_exists"
authorRay Strode <rstrode@redhat.com>
Thu, 28 Dec 2023 19:05:36 +0000 (14:05 -0500)
committerRay Strode <rstrode@redhat.com>
Thu, 28 Dec 2023 19:05:36 +0000 (14:05 -0500)
This reverts commit e989867f4871bba564cd5dcc0de64da8ead36058.

I had stat/lstat momentarily crossed in my brain

src/libply/ply-utils.c

index a71d8de80c6492380e07dd288b57b0f598fad4e8..95b505b170f6ee40e60c2bbf6cafccd238a8c99f 100644 (file)
@@ -518,7 +518,7 @@ ply_file_exists (const char *file)
 {
         struct stat file_info;
 
-        if (lstat (file, &file_info) < 0)
+        if (stat (file, &file_info) < 0)
                 return false;
 
         return S_ISREG (file_info.st_mode);