Issue 19271

Summary: getenv value passed to strtok & LD_LIBRARY_PATH breakage
Product: Installation Reporter: mmeeks <mmeeks>
Component: codeAssignee: Olaf Felka <olaf-openoffice>
Status: CLOSED FIXED QA Contact: issues@installation <issues>
Severity: Trivial    
Priority: P2 CC: issues, nesshof
Version: OOo 1.1 RC4   
Target Milestone: OOo 1.1 RC   
Hardware: PC   
OS: Linux, all   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
fix some path clobbering. none

Description mmeeks 2003-09-08 16:39:42 UTC
As above really; the strtok man page says:

       Never use these functions. If you do, note that:
              These functions modify their first argument.
              These functions cannot be used on constant strings.
              ...

This patch fixes the bug and another LD_LIBRARY_PATH clobbering; this is
necessary for some of our Linux users / people with interestingly prefix'd setups.

Thanks.
Comment 1 mmeeks 2003-09-08 16:40:01 UTC
Created attachment 9092 [details]
fix some path clobbering.
Comment 2 Olaf Felka 2003-09-09 08:32:16 UTC
Hi Dirk,
is this something for you?
Comment 3 dirk.voelzke 2003-09-11 14:28:44 UTC
.
Comment 4 dirk.voelzke 2003-09-12 10:42:21 UTC
Fixed in CWS ooo11vclrc5.
Comment 5 dirk.voelzke 2003-09-16 09:22:59 UTC
Please verify.
Comment 6 Olaf Felka 2003-09-16 10:08:53 UTC
Done.
Comment 7 Olaf Felka 2003-09-16 10:10:11 UTC
Verified in:
setup2/mow/source/loader/loader.c
setup2/script/setup.sh
Comment 8 Olaf Felka 2003-09-16 14:49:41 UTC
verified
Comment 9 Olaf Felka 2003-10-02 10:50:37 UTC
Closed