=== modified file 'initramfs-tools-hook' --- initramfs-tools-hook 2009-04-17 08:26:17 +0000 +++ initramfs-tools-hook 2009-09-07 23:48:17 +0000 @@ -90,8 +90,7 @@ case "$base" in *~|.*|\#*\#|*.dpkg-old|*.dpkg-bak|*.dpkg-new|*.dpkg-divert) : ;; - */"*") - echo "W: Mandos client plugin directory is empty." >&2 ;; + "*") echo "W: Mandos client plugin directory is empty." >&2 ;; *) copy_exec "$file" "${PLUGINDIR}" ;; esac done @@ -102,7 +101,7 @@ case "$base" in *~|.*|\#*\#|*.dpkg-old|*.dpkg-bak|*.dpkg-new|*.dpkg-divert) : ;; - */"*") : ;; + "*") : ;; *) copy_exec "$file" "${PLUGINDIR}" ;; esac done === modified file 'plugin-runner.c' --- plugin-runner.c 2009-09-07 07:48:59 +0000 +++ plugin-runner.c 2009-09-21 13:13:47 +0000 @@ -54,7 +54,7 @@ #include /* fcntl(), F_GETFD, F_SETFD, FD_CLOEXEC */ #include /* strsep, strlen(), asprintf(), - strsignal() */ + strsignal(), strcmp(), strncmp() */ #include /* errno */ #include /* struct argp_option, struct argp_state, struct argp, @@ -770,7 +770,7 @@ for(const char **suf = bad_suffixes; *suf != NULL; suf++){ size_t suf_len = strlen(*suf); if((d_name_len >= suf_len) - and (strcmp((dirst->d_name)+d_name_len-suf_len, *suf) + and (strcmp((dirst->d_name) + d_name_len-suf_len, *suf) == 0)){ if(debug){ fprintf(stderr, "Ignoring plugin dir entry \"%s\"" === modified file 'plugins.d/password-prompt.c' --- plugins.d/password-prompt.c 2009-09-07 07:48:59 +0000 +++ plugins.d/password-prompt.c 2009-09-21 13:13:47 +0000 @@ -44,7 +44,7 @@ #include /* errno, EINVAL */ #include /* or, not */ #include /* bool, false, true */ -#include /* strlen, rindex, strncmp, strcmp */ +#include /* strlen, rindex */ #include /* struct argp_option, struct argp_state, struct argp, argp_parse(), error_t,