<i>windows: exec doesn't find symlink without full path</i> status still Closed with 4 other changes
by
.
D 2004-06-06T15:48:45
J icomment Logged\sIn:\sYES\s\nuser_id=994002\n\nWell,\sI\shad\sto\sbrowse\sdeeper\sin\scode,\sand\sstrace.exe\sthe\sruns\nto\sknow\smore.\nFirst\slet's\scorrect\ssome\sof\smy\swrong\sprevious\sassertions:\n-\sForget\stclUnixPipe.c\sand\sexecvp().\sFor\sthe\scygwin\spackage\ntclWinPipe.c\sis\sused.\n-\sForget\swhat\sI\swrote\sabout\slpApplicationName.\sEven\sdirectly\nfrom\sbash,\sa\sCreateProcess()\sis\scalled\swith\nlpApplicationName\s=\s"C:\\cygwin\\bin\\gzip.exe"\nlpCommandLine="C:\\cygwin\\bin\\gzip.exe\s/tmp/some.gz"\n\nNow,\swhat\sI\sthink\sis\sthe\sexplanation:\nbash\suses\sspawn.cc.\sCreateProcess()\sis\scalled\sin\sspawn_guts()\nof\sthis\ssource,\swith\sextra\sinformation\sin\nlpStartupInfo.lpReserved2\s(which\sshould\sbe\sNULL\sfor\sa\nMSC\sRuntime\sexe).\nThis\sinfo\swill\sprovide\sthe\sargv\sfor\sthe\schild\sprocess,\sbut\nwith\sthe\sreplacement\sof\sargv[0]:\n\snewargv.replace0_maybe\s(prog_arg);\nThat's\show\sgzip.exe\sgets\sits\sarg[0]\sas\s"/bin/gunzip.exe".\n\nNote:\sthe\scygwin\sstarter\salso\ssupports\slpReserved2\sas\sNULL,\nbut\sthen\sall\sthis\swizardry\sfor\sarg[0]\sis\smissing.\n\nI\sguess\sthere\sis\sno\sway\sfor\sTCL\sto\ssatisfy\sthese\scygwin\ninternals,\sso\sI'm\son\smy\sown\sto\sreplace\severy\s"gunzip"\swith\n"gzip\s-d"\sin\sthe\stcl-based\sopen\ssource\sproducts\sI\suse.\nAnd\sfor\sany\s!<symlink>\sform\sof\sexe\sas\swell.\n\nThanks\sanyway\sto\sall\sfor\syour\scomments\sand\sassistance.\n\n
J login p_samson
J mimetype text/plain
J username p_samson
K 914108ffffffffffffffffffffffffffffffffff
U p_samson
Z e4150758181149c8a135ddab0d4ab1bd