Define and use a path separator string
A colon can't be used to separate paths on Windows since they are used in drive sepecification. Define a macro that can be used as a path separator string. On Windows, this is defined as ";". It is a ":" everywhere else.
This commit is contained in:
@@ -37,18 +37,18 @@
|
||||
|
||||
KRB5_LIB_VARIABLE const char *krb5_config_file =
|
||||
#ifdef __APPLE__
|
||||
"~/Library/Preferences/com.apple.Kerberos.plist:"
|
||||
"/Library/Preferences/com.apple.Kerberos.plist:"
|
||||
"~/Library/Preferences/edu.mit.Kerberos:"
|
||||
"/Library/Preferences/edu.mit.Kerberos:"
|
||||
"~/Library/Preferences/com.apple.Kerberos.plist" PATH_SEP
|
||||
"/Library/Preferences/com.apple.Kerberos.plist" PATH_SEP
|
||||
"~/Library/Preferences/edu.mit.Kerberos" PATH_SEP
|
||||
"/Library/Preferences/edu.mit.Kerberos" PATH_SEP
|
||||
#endif /* __APPLE__ */
|
||||
"~/.krb5/config:"
|
||||
"~/.krb5/config" PATH_SEP
|
||||
SYSCONFDIR "/krb5.conf"
|
||||
#ifdef _WIN32
|
||||
":%{COMMON_APPDATA}/Kerberos/krb5.conf"
|
||||
":%{WINDOWS}/krb5.ini"
|
||||
PATH_SEP "%{COMMON_APPDATA}/Kerberos/krb5.conf"
|
||||
PATH_SEP "%{WINDOWS}/krb5.ini"
|
||||
#else
|
||||
":/etc/krb5.conf"
|
||||
PATH_SEP "/etc/krb5.conf"
|
||||
#endif
|
||||
;
|
||||
|
||||
|
Reference in New Issue
Block a user