]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
stat-util: add missing S_IFLNK entry in inode_type_to_string()
authorLennart Poettering <lennart@poettering.net>
Tue, 20 Jun 2023 15:03:47 +0000 (17:03 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 20 Jun 2023 18:10:32 +0000 (19:10 +0100)
No idea what happened here, but it's a glaring omission.

src/basic/stat-util.c

index 3c999098e15e60aceb670b3036cab55f8d809863..b4905220fa30e16df6f9542afa839ad7dfe3cc1e 100644 (file)
@@ -490,6 +490,8 @@ const char* inode_type_to_string(mode_t m) {
                 return "reg";
         case S_IFDIR:
                 return "dir";
+        case S_IFLNK:
+                return "lnk";
         case S_IFCHR:
                 return "chr";
         case S_IFBLK: