Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 595ae39f authored by Elliott Hughes's avatar Elliott Hughes Committed by Gerrit Code Review
Browse files

Merge "Use more intention-revealing tests for S_ISLNK and S_ISSOCK."

parents 21454aa2 1bf24812
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -56,9 +56,11 @@ FileType getFileType(const char* fileName)
            return kFileTypeBlockDev;
        else if (S_ISFIFO(sb.st_mode))
            return kFileTypeFifo;
#ifdef HAVE_SYMLINKS
#if defined(S_ISLNK)
        else if (S_ISLNK(sb.st_mode))
            return kFileTypeSymlink;
#endif
#if defined(S_ISSOCK)
        else if (S_ISSOCK(sb.st_mode))
            return kFileTypeSocket;
#endif