mirror of
https://github.com/systemd/systemd.git
synced 2026-08-13 17:08:14 +00:00
stat-util: fix return type of mode_verify_socket()
It returns an error code, not a mode Follow-up for97fe03e12f(cherry picked from commit8fe512a02e)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user