mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
Fixup %EXECUTABLE% code.
git-svn-id: file:///svn/unbound/trunk@3552 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
12b29439f5
commit
453ff48e89
1 changed files with 1 additions and 1 deletions
|
|
@ -334,11 +334,11 @@ service_init(int r, struct daemon** d, struct config_file** c)
|
|||
/* apply settings and init */
|
||||
verbosity = cfg->verbosity + service_cmdline_verbose;
|
||||
if(cfg->directory && cfg->directory[0]) {
|
||||
TCHAR dirbuf[2*MAX_PATH+4];
|
||||
char* dir = cfg->directory;
|
||||
if(strcmp(dir, "%EXECUTABLE%") == 0) {
|
||||
/* get executable path, and if that contains
|
||||
* directories, snip off the filename part */
|
||||
TCHAR dirbuf[2*MAX_PATH+4];
|
||||
dirbuf[0] = 0;
|
||||
if(!GetModuleFileName(NULL, path+1, MAX_PATH))
|
||||
log_err("could not GetModuleFileName");
|
||||
|
|
|
|||
Loading…
Reference in a new issue