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

V6 chown、函数异常 #5449

Closed
warmbook opened this issue Aug 18, 2024 · 1 comment
Closed

V6 chown、函数异常 #5449

warmbook opened this issue Aug 18, 2024 · 1 comment

Comments

@warmbook
Copy link

Please answer these questions before submitting your issue.

  1. What did you do? If possible, provide a simple script for reproducing the error.
    chown($logFile,'nobody');
    $userinfo = posix_getpwnam("nobody");

  2. What did you expect to see?
    文件所有者应改为 nobody,$userinfo不应该为FALSE

  3. What did you see instead?
    文件所有者依然是root,并出现以下提示:
    Warning: chown(): Unable to find uid for nobody in ......
    open(......) failed. Error: Permission denied[13]

  4. What version of Swoole are you using (show your php --ri swoole)?
    swoole V6

  5. What is your machine environment used (show your uname -a & php -v & gcc -v) ?
    Linux iZuf68ujmphbn8maxiqqp6Z 5.10.134-12.2.al8.x86_64 编译出错 #1 SMP Thu Oct 27 10:07:15 CST 2022 x86_64 x86_64 x86_64 GNU/Linux

@matyhtf
Copy link
Member

matyhtf commented Aug 20, 2024

#5437

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

No branches or pull requests

2 participants