mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-30 22:05:46 +00:00
Merge 5177a284b9ff 549f8f7c2463 88f3181692fe from 1.7 branch.
This commit is contained in:
2
configure
vendored
2
configure
vendored
@@ -25195,9 +25195,9 @@ if test ${with_ldap-'no'} != "no"; then
|
||||
|
||||
CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
|
||||
with_ldap=yes
|
||||
LDAP=""
|
||||
fi
|
||||
SUDOERS_OBJS="${SUDOERS_OBJS} ldap.lo"
|
||||
LDAP=""
|
||||
|
||||
{ echo "$as_me:$LINENO: checking for LDAP libraries" >&5
|
||||
echo $ECHO_N "checking for LDAP libraries... $ECHO_C" >&6; }
|
||||
|
@@ -2535,9 +2535,9 @@ if test ${with_ldap-'no'} != "no"; then
|
||||
SUDO_APPEND_LIBPATH(LDFLAGS, [${with_ldap}/lib])
|
||||
CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
|
||||
with_ldap=yes
|
||||
LDAP=""
|
||||
fi
|
||||
SUDOERS_OBJS="${SUDOERS_OBJS} ldap.lo"
|
||||
LDAP=""
|
||||
|
||||
AC_MSG_CHECKING([for LDAP libraries])
|
||||
LDAP_LIBS=""
|
||||
|
@@ -375,7 +375,7 @@ command_matches(sudoers_cmnd, sudoers_args)
|
||||
char *sudoers_args;
|
||||
{
|
||||
/* Check for pseudo-commands */
|
||||
if (strchr(user_cmnd, '/') == NULL) {
|
||||
if (sudoers_cmnd[0] != '/') {
|
||||
/*
|
||||
* Return true if both sudoers_cmnd and user_cmnd are "sudoedit" AND
|
||||
* a) there are no args in sudoers OR
|
||||
@@ -465,7 +465,7 @@ command_matches_glob(sudoers_cmnd, sudoers_args)
|
||||
* else return false.
|
||||
*/
|
||||
#define GLOB_FLAGS (GLOB_NOSORT | GLOB_MARK | GLOB_BRACE | GLOB_TILDE)
|
||||
if (glob(sudoers_cmnd, GLOB_FLAGS, NULL, &gl) != 0) {
|
||||
if (glob(sudoers_cmnd, GLOB_FLAGS, NULL, &gl) != 0 || gl.gl_pathc == 0) {
|
||||
globfree(&gl);
|
||||
return(FALSE);
|
||||
}
|
||||
|
Reference in New Issue
Block a user