Skip to content

Commit cd89dd6

Browse files
liqiang-fit2cloudliuruibin
authored andcommitted
refactor: add code comment.
1 parent 2050adf commit cd89dd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

installer/sandbox.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ int connect(int sockfd, const struct sockaddr *addr, socklen_t addrlen) {
108108

109109
if (banned_env && *banned_env && match_env_patterns(ip, banned_env)) {
110110
fprintf(stderr, "[sandbox] 🚫 Access to host %s is banned\n", ip);
111-
errno = EACCES;
111+
errno = EACCES; // EACCES 的值是 13, 意思是 Permission denied
112112
return -1;
113113
}
114114

0 commit comments

Comments
 (0)