This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: "run" changes behavior with cygwin-17.6

On 8/18/2010 2:25 PM, Andy Koppe wrote:
Ouch. This might affect even more cygutils. We really should have
thought of that.

At least there aren't any chdir() calls in any of the cygutils, so it
should primarily be a question of setting the Win32 current directory
in line with the POSIX one at startup, in any of the utils that may
invoke a Win32 function with a relative path. Chuck, do you need a
hand with going through them?

Oh, riiiiight.

The problem is this: since the win32 CWD is *always* bogus, it is possible that other win32 functions will croak, not just CreateProcess. So, there are a number of native win32 calls in the cygutils tools, like:

cygstart: CreateProcess, among others
lpr: ...many...
putclip/getclip: GetClipboardData, SetClipboardData, etc

Now, I haven't tested each of these tools exhaustively under cygwin-1.7.6, so I'm not sure the bogus win32 cwd affects them (except obviously cygstart). their very nature many of these tools use the native w32api. So...each should probably take care to set the win32 cwd if at all possible.

Yeah, patches would be great.


Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]