[prev in list] [next in list] [prev in thread] [next in thread]
List: proftpd-committers
Subject: [ProFTPD-committers] proftpd/contrib/mod_sftp mod_sftp.c, 1.61.2.3, 1.61.2.4
From: TJ Saunders <castaglia () users ! sourceforge ! net>
Date: 2014-03-02 16:55:07
Message-ID: E1WK9fR-0006rg-7V () sfs-ml-2 ! v29 ! ch3 ! sourceforge ! com
[Download RAW message or body]
Update of /cvsroot/proftp/proftpd/contrib/mod_sftp
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv11182/contrib/mod_sftp
Modified Files:
Tag: B1_3_4
mod_sftp.c
Log Message:
Backport of fix for Bug#4032 to 1.3.4 branch.
Index: mod_sftp.c
===================================================================
RCS file: /cvsroot/proftp/proftpd/contrib/mod_sftp/mod_sftp.c,v
retrieving revision 1.61.2.3
retrieving revision 1.61.2.4
diff -u -d -r1.61.2.3 -r1.61.2.4
--- mod_sftp.c 13 Jan 2014 18:25:44 -0000 1.61.2.3
+++ mod_sftp.c 2 Mar 2014 16:55:05 -0000 1.61.2.4
@@ -1096,6 +1096,7 @@
/* usage: SFTPHostKey path */
MODRET set_sftphostkey(cmd_rec *cmd) {
+ int res, xerrno;
struct stat st;
CHECK_ARGS(cmd, 1);
@@ -1105,9 +1106,14 @@
CONF_ERROR(cmd, "must be an absolute path");
}
- if (stat(cmd->argv[1], &st) < 0) {
+ PRIVS_ROOT
+ res = stat(cmd->argv[1], &st);
+ xerrno = errno;
+ PRIVS_RELINQUISH
+
+ if (res < 0) {
CONF_ERROR(cmd, pstrcat(cmd->tmp_pool, "unable to check '", cmd->argv[1],
- "': ", strerror(errno), NULL));
+ "': ", strerror(xerrno), NULL));
}
if ((st.st_mode & S_IRWXG) ||
------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
ProFTPD Committers Mailing List
proftpd-committers@proftpd.org
https://lists.sourceforge.net/lists/listinfo/proftp-committers
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic