mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* keyserver.c (keyserver_spawn): Include the EXEEXT so we can find
keyserver helpers on systems that use extensions. * misc.c (path_access) [HAVE_DRIVE_LETTERS]: Do the right thing with drive letter systems.
This commit is contained in:
parent
d232175d8d
commit
4ff7d09040
3 changed files with 21 additions and 3 deletions
10
g10/misc.c
10
g10/misc.c
|
@ -1251,7 +1251,15 @@ path_access(const char *file,int mode)
|
|||
|
||||
envpath=getenv("PATH");
|
||||
|
||||
if(file[0]=='/' || !envpath)
|
||||
if(!envpath
|
||||
#ifdef HAVE_DRIVE_LETTERS
|
||||
|| (((file[0]>='A' && file[0]<='Z')
|
||||
|| (file[0]>='a' && file[0]<='z'))
|
||||
&& file[1]==':')
|
||||
#else
|
||||
|| file[0]=='/'
|
||||
#endif
|
||||
)
|
||||
return access(file,mode);
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue