Bug 701
| Summary: | Problem with NISDOMAINNAME environment variable | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | morris |
| Component: | dhcpcd | Assignee: | David Lawrence <dkl> |
| Status: | CLOSED WORKSFORME | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 5.2 | CC: | morris |
| 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: | 1999-01-06 23:09:32 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: | |||
I have not been able to replicate this problem on test lab machines. Also most of our workstations use NIS and have not reported this problem with 5.2. |
The NISDOMAINNAME environment variable is incorrectly set. Some invalis characters are added at the end of the string. The following patch seems to correct the problem by adding a null character at the end of the string. --- hostinfo.c.ORG Mon Jan 4 12:59:07 1999 +++ hostinfo.c Wed Jan 6 12:30:27 1999 @@ -215,6 +215,7 @@ switch ( flag ) { case OT_STRING: strncpy(env, optp+1, *optp); + env[*optp] = '\0'; if ( setenv(name, env, 1) < 0 ) { logRet("setenv (addHostInfo): insufficient space"); }