Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.6.3

Bug #16668 Mbox doesn't work in suid/sgid scripts
Submitted: 2009-10-01 20:02 UTC
From: vaceletm Assigned: cweiske
Status: Closed Package: Mail_Mbox (version 0.6.0)
PHP Version: 5.1.6 OS: RHEL5
Roadmaps: (Not assigned)    
Subscription  


 [2009-10-01 20:02 UTC] vaceletm (Manuel Vacelet)
Description: ------------ As Mbox rely on file_exists to test file existance, when the php script is called through a suid/sgid program, the file existance test is done with real UID/GID instead of the effective one. I attach a patch that uses is_file that fix the problem. See http://www.php.net/manual/en/function.file-exists.php http://www.php.net/manual/en/function.is-file.php http://bugs.php.net/bug.php?id=40535

Comments

 [2009-10-01 20:08 UTC] vaceletm (Manuel Vacelet)
 [2009-10-01 20:10 UTC] cweiske (Christian Weiske)
-Status: Open +Status: Verified
 [2009-10-09 21:33 UTC] cweiske (Christian Weiske)
-Status: Verified +Status: Closed -Assigned To: +Assigned To: cweiske
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/ Fixed in 0.6.1