Skip to content

Commit

Permalink
CLIENT: remove check for rw-rw-rw-
Browse files Browse the repository at this point in the history
as it doesn't make much sense anyway.

Reviewed-by: Justin Stephenson <[email protected]>
Reviewed-by: Pavel Březina <[email protected]>
Reviewed-by: Sumit Bose <[email protected]>
  • Loading branch information
alexey-tikhonov committed Dec 6, 2023
1 parent 2a3e47a commit 41f8a68
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/sss_client/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -993,8 +993,7 @@ inline static errno_t check_socket_cred(const char *socket_name)
return ESSS_SOCKET_STAT_ERROR;
}

if ( !S_ISSOCK(stat_buf.st_mode) ||
((stat_buf.st_mode & ~S_IFMT) != 0666) ) {
if (!S_ISSOCK(stat_buf.st_mode)) {
return ESSS_BAD_SOCKET;
}

Expand Down

0 comments on commit 41f8a68

Please sign in to comment.