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  


 [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] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!