diff --git a/configure b/configure index d502eaf62..f05a1896b 100755 --- a/configure +++ b/configure @@ -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; } diff --git a/configure.in b/configure.in index a9c8aaaff..33c3d8047 100644 --- a/configure.in +++ b/configure.in @@ -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="" diff --git a/plugins/sudoers/match.c b/plugins/sudoers/match.c index 9aa94ba13..46c3bb040 100644 --- a/plugins/sudoers/match.c +++ b/plugins/sudoers/match.c @@ -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); }