[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #12209] PATH vs Path

From: Juha Laukala
Subject: [bug #12209] PATH vs Path
Date: Thu, 30 Nov 2006 13:58:43 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv: Gecko/20061025 Firefox/

Follow-up Comment #2, bug #12209 (project make):

-- code snippet from function.c:1475++

  /* make sure that CreateProcess() has Path it needs */

  if (!process_begin(hProcess, command_argv, envp, command_argv[0], NULL)) {
    /* register process for wait */

 The sync_Path_environment() sets PATH variable to environment, but the
process_begin() is called with previously stored envp, so the PATH is set
wrong for the first process_begin() call. 

I would suggest moving the call to sync_Path_environment() before storing the
envp, see the patch attached. 

Easy way to demonstrate the difference is following Makefile with
native-win32 version:

export PATH=c:/tmp
$(warning $(shell path))
$(warning $(shell path))

(file #11414)

Additional Item Attachment:

File name: make_w32_path_change_fix.txt   Size:0 KB


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]