stat-util: fix return type of mode_verify_socket()

It returns an error code, not a mode

Follow-up for 97fe03e12f

(cherry picked from commit 8fe512a02e)
This commit is contained in:
Luca Boccassi
2026-03-28 18:50:49 +00:00
parent 021dc31682
commit 737f1ef162

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;