diff options
Diffstat (limited to 'patches')
-rw-r--r-- | patches/lighttpd_mod_rewrite.patch | 11 | ||||
-rw-r--r-- | patches/pam_login_access.patch | 20 |
2 files changed, 31 insertions, 0 deletions
diff --git a/patches/lighttpd_mod_rewrite.patch b/patches/lighttpd_mod_rewrite.patch new file mode 100644 index 0000000..4a2d31c --- /dev/null +++ b/patches/lighttpd_mod_rewrite.patch @@ -0,0 +1,11 @@ +--- src/mod_rewrite.c 2011-07-04 01:02:38.000000000 +0200 ++++ mod_rewrite.c 2011-07-04 01:03:41.000000000 +0200 +@@ -461,7 +461,7 @@ + /* skip if physical.path is a regular file */ + sce = NULL; + if (HANDLER_ERROR != stat_cache_get_entry(srv, con, con->physical.path, &sce)) { +- if (S_ISREG(sce->st.st_mode)) return HANDLER_GO_ON; ++ if (S_ISREG(sce->st.st_mode) || S_ISDIR(sce->st.st_mode)) return HANDLER_GO_ON; + } + + switch(r = process_rewrite_rules(srv, con, p, p->conf.rewrite_NF)) { diff --git a/patches/pam_login_access.patch b/patches/pam_login_access.patch new file mode 100644 index 0000000..6b3b9ce --- /dev/null +++ b/patches/pam_login_access.patch @@ -0,0 +1,20 @@ +--- /usr/src/lib/libpam/modules/pam_login_access/pam_login_access.c 2009-10-25 02:10:29.000000000 +0100 ++++ pam_login_access.c 2011-06-13 13:59:16.000000000 +0200 +@@ -84,15 +84,13 @@ + (const char *)user, (const char *)tty); + if (login_access(user, tty) != 0) + return (PAM_SUCCESS); +- PAM_VERBOSE_ERROR("%s is not allowed to log in on %s", +- user, tty); ++ pam_info(pamh,"Permission denied for %s",(const char *)user); + } else { + PAM_LOG("Checking login.access for user %s from host %s", + (const char *)user, (const char *)rhost); + if (login_access(user, rhost) != 0) + return (PAM_SUCCESS); +- PAM_VERBOSE_ERROR("%s is not allowed to log in from %s", +- user, rhost); ++ pam_info(pamh,"Sorry."); + } + + return (PAM_AUTH_ERR); |