Plan 9 from Bell Labs’s /usr/web/sources/patch/applied/9load-conf-error/readme

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


Had a "warning: did not change ... in plan9.ini" message when using 9pxeload, but didnt on 9load. changeconf() copies the first bytes of the new configuration line to pref+1, but strchr() starts looking for the = at pref. But pref[0] is not initialized here. (It is later used to store an '\n'). This patch changes strchr(pref, '=') to strchr(pref+1, '='). This fixes the problem for me.

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].