Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修正脚本错误:SANDBOX_USER取uid #483

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zhanghangorg
Copy link

sanbox.sh 中 SANDBOX_USER 默认取值 USER变量(或whoami执行结果),

check_permission 中 pgrep -U "${SANDBOX_USER}" 需要传入参数为 uid

pgrep [-U uid]

在macos 域环境下执行,check_permission()执行 pgrep找不到用户指定pid,永远无权限。
故SANDBOX_USER 取值改为 id -u

@CLAassistant
Copy link

CLAassistant commented Nov 8, 2024

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants