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

Bug #3348 # sign in any field breaks passwd file
Submitted: 2005-02-01 17:07 UTC
From: whitehatcheck at yahoo dot com Assigned: mike
Status: Closed Package: File_Passwd
PHP Version: 4.3.10 OS: Solaris 9
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 8 + 30 = ?

 
 [2005-02-01 17:07 UTC] whitehatcheck at yahoo dot com
Description: ------------ Current Version: File_Passwd-1.1.0 If passwd file contains a existing '#' in the geckos string it will break the passwd file from that point out by ommiting the rest of that line. Example Passwd entry before PEAR interaction: user1:x:123123:123:User_Guy_#1_1231234:/home/user1:/bin/false Example Passwd entry after PEAR interaction: user1:x:123123:123:User_Guy_ This would make any lines after this unusable to the system. Reproduce code: --------------- Manually usermod the passwd file and add a '#' to the comments. Then execute PEAR script to modify another user. At this point, cat'ing the passwd file.. it will be hosed. Expected result: ---------------- Expected the '#' sign to remain within the passwd file. Actual result: -------------- '#' sign is removed.. and all characters after it till the newline.

Comments

 [2005-02-01 18:25 UTC] mike
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/File_Passwd