"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "modules/mod_auth_unix.c" between
proftpd-1.3.6b.tar.gz and proftpd-1.3.6c.tar.gz

About: ProFTPD is a highly configurable FTP server software (with FTPS and SFTP support).

mod_auth_unix.c  (proftpd-1.3.6b):mod_auth_unix.c  (proftpd-1.3.6c)
/* /*
* ProFTPD - FTP server daemon * ProFTPD - FTP server daemon
* Copyright (c) 1997, 1998 Public Flood Software * Copyright (c) 1997, 1998 Public Flood Software
* Copyright (c) 1999, 2000 MacGyver aka Habeeb J. Dihu <macgyver@tos.net> * Copyright (c) 1999, 2000 MacGyver aka Habeeb J. Dihu <macgyver@tos.net>
* Copyright (c) 2001-2017 The ProFTPD Project team * Copyright (c) 2001-2020 The ProFTPD Project team
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
skipping to change at line 770 skipping to change at line 770
time_t now; time_t now;
char *user, *cleartxt_passwd; char *user, *cleartxt_passwd;
time_t lstchg = -1, max = -1, inact = -1, expire = -1; time_t lstchg = -1, max = -1, inact = -1, expire = -1;
size_t cleartxt_passwdlen; size_t cleartxt_passwdlen;
user = cmd->argv[0]; user = cmd->argv[0];
cleartxt_passwd = get_pwd_info(cmd->tmp_pool, user, &lstchg, NULL, &max, cleartxt_passwd = get_pwd_info(cmd->tmp_pool, user, &lstchg, NULL, &max,
NULL, &inact, &expire); NULL, &inact, &expire);
if (cleartxt_passwd == NULL) { if (cleartxt_passwd == NULL) {
pr_log_auth(LOG_WARNING, "no password information found for user '%.100s'", pr_trace_msg(trace_channel, 3,
user); "no password information found for user '%.100s'", user);
return PR_ERROR_INT(cmd, PR_AUTH_NOPWD); return PR_DECLINED(cmd);
} }
cleartxt_passwdlen = strlen(cleartxt_passwd); cleartxt_passwdlen = strlen(cleartxt_passwd);
pr_memscrub(cleartxt_passwd, cleartxt_passwdlen); pr_memscrub(cleartxt_passwd, cleartxt_passwdlen);
time(&now); time(&now);
if (lstchg > (time_t) 0 && if (lstchg > (time_t) 0 &&
max > (time_t) 0 && max > (time_t) 0 &&
inact > (time_t) 0) { inact > (time_t) 0) {
 End of changes. 2 change blocks. 
4 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)