Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 120060
Summary: | Passwd code cleanup | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Steve Grubb <linux_4ever> | ||||||
Component: | passwd | Assignee: | Jindrich Novy <jnovy> | ||||||
Status: | CLOSED RAWHIDE | QA Contact: | Mike McLean <mikem> | ||||||
Severity: | high | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | rawhide | CC: | pknirsch | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2004-09-02 11:46:17 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Bug Depends On: | |||||||||
Bug Blocks: | 114963, 123268 | ||||||||
Attachments: |
|
Description
Steve Grubb
2004-04-05 17:50:44 UTC
Created attachment 99118 [details]
Patch that fixes bugs found by code review.
Please apply before releasing fedora core 2.
Created attachment 99912 [details]
Revised patch
The off by one problem was found to be used to remove the \n. Therefore the
patch needed updating. Please use this one instead.
Note btw that there is a small behavioour change if the user uses ^V before newl ine characters. The new behaviour seems somewhat wiser however. At one point, I had: if (i && newPassword[i-1] == '\n') newPassword[i-1] = 0; It was suggested on vend-sec to just do a strchr instead. I suppose they may have meant strrchr. Hello Steve, most things from your patch were applied. Thanks, Jindrich |