Bug 229825
| Summary: | aci with bogus uid= dn created by ds_newinst | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Retired] 389 | Reporter: | Rich Megginson <rmeggins> | ||||||
| Component: | Directory Server | Assignee: | Rich Megginson <rmeggins> | ||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Viktor Ashirov <vashirov> | ||||||
| Severity: | medium | Docs Contact: | |||||||
| Priority: | medium | ||||||||
| Version: | 1.0.4 | ||||||||
| 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: | 2015-12-07 16:55:40 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: | 152373, 240316, 427409 | ||||||||
| Attachments: |
|
||||||||
|
Description
Rich Megginson
2007-02-23 17:44:00 UTC
Created attachment 148687 [details]
diffs
Looks good. Created attachment 148697 [details]
cvs commit log
Reviewed by: nhosoi (Thanks!)
Files: see diff
Branch: HEAD
Fix Description: Unknown to me until just now, PL_strdup(NULL) will return "" -
the empty string. The code in config_suitespot() expects that empty or unused
fields are NULL. The solution is to create a create_instance_strdup() wrapper
around PL_strdup() and use that in cases where the argument may be NULL. I
checked create_instance.c. Every other place where PL_strdup is used, the
argument is checked for NULL first. So these are the only places affected.
Instance creation works fine after this change and does not create the
offending aci.
Platforms tested: RHEL4
Flag Day: no
Doc impact: no
ds_newinst.pl has been discard in the new 8.0 release. However, related code still used. Bug verification test has been done. Please refer to bug 229824 for details. |