1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## auth_fix.dpatch by Francesco Paolo Lovergine <frankie@debian.org>
4
## All lines beginning with `## DP:' are a description of the patch.
8
diff -urNad proftpd-dfsg-1.3.0~/modules/mod_auth_unix.c proftpd-dfsg-1.3.0/modules/mod_auth_unix.c
9
--- proftpd-dfsg-1.3.0~/modules/mod_auth_unix.c 2005-07-03 20:52:02.000000000 +0200
10
+++ proftpd-dfsg-1.3.0/modules/mod_auth_unix.c 2007-01-18 12:23:58.000000000 +0100
15
- if (strcmp(bigcrypt((char *) pw, (char *) cpw), cpw) != 0)
17
+ if (strcmp(bigcrypt((char *) pw, (char *) cpw), cpw) != 0) {
18
+ return DECLINED(cmd);
27
- if (res != SIASUCCESS)
29
+ if (res != SIASUCCESS) {
30
+ return DECLINED(cmd);
33
#else /* !PR_USE_SIA */
36
* other than HANDLED at the moment.
39
- if (MODRET_ISHANDLED(mr) && MODRET_HASDATA(mr)) {
40
+ if (MODRET_ISHANDLED(mr) &&
41
+ MODRET_HASDATA(mr)) {
44
- if ((token = cygwin_logon_user((const struct passwd *) pwent,
45
- pw)) == INVALID_HANDLE_VALUE) {
46
+ token = cygwin_logon_user((const struct passwd *) pwent, pw);
47
+ if (token == INVALID_HANDLE_VALUE) {
48
pr_log_pri(PR_LOG_NOTICE, "error authenticating Cygwin user: %s",
53
cygwin_set_impersonation_token(token);
63
- if (strcmp(crypt(pw, cpw), cpw) != 0)
65
+ if (strcmp(crypt(pw, cpw), cpw) != 0) {
66
+ return DECLINED(cmd);
68
#endif /* PR_USE_SIA */