stat-util: fix return type of mode_verify_socket()

It returns an error code, not a mode

Follow-up for 97fe03e12f
This commit is contained in:
Luca Boccassi
2026-03-28 19:56:31 +00:00
parent 74a9ed911d
commit 8fe512a02e
+1 -1
View File
@@ -153,7 +153,7 @@ int is_symlink(const char *path) {
return verify_stat_at(AT_FDCWD, path, false, stat_verify_symlink, false);
}
static mode_t mode_verify_socket(mode_t mode) {
static int mode_verify_socket(mode_t mode) {
if (S_ISLNK(mode))
return -ELOOP;