Fix build error when --without-noexec configure option is used.

This commit is contained in:
Todd C. Miller
2011-07-05 12:20:10 -04:00
parent ae34052542
commit 76f427e8d7
2 changed files with 20 additions and 10 deletions

View File

@@ -52,7 +52,9 @@
# define RTLD_GLOBAL 0
#endif
#ifdef _PATH_SUDO_NOEXEC
const char *noexec_path = _PATH_SUDO_NOEXEC;
#endif
/*
* Read in /etc/sudo.conf
@@ -83,8 +85,10 @@ sudo_read_conf(const char *conf_file)
}
if (strcasecmp(name, "askpass") == 0)
askpass_path = estrdup(path);
#ifdef _PATH_SUDO_NOEXEC
else if (strcasecmp(name, "noexec") == 0)
noexec_path = estrdup(path);
#endif
continue;
}