Simon Tatham
85fbb4216e
pscp: replace crash with diagnostic on opendir failure.
...
A user points out that the call to close_directory() in pscp.c's
rsource() function should have been inside rather than outside the if
statement that checks whether the directory handle is NULL. As a
result, any failed attempt to open a directory during a 'pscp -r'
recursive upload leads to a null-pointer dereference.
Moved the close_directory call to where it should be, and also
arranged to print the OS error code if the directory-open fails, by
also changing the API of open_directory to return an error string on
failure.
2018-12-27 16:52:23 +00:00
..
2014-02-22 18:01:32 +00:00
2018-11-03 13:47:29 +00:00
2018-11-03 13:45:00 +00:00
2018-11-03 13:45:00 +00:00
2018-12-01 17:04:44 +00:00
2018-11-03 13:45:00 +00:00
2018-11-03 13:45:00 +00:00
2018-11-03 13:45:00 +00:00
2018-12-01 17:04:44 +00:00
2018-12-01 17:04:44 +00:00
2018-11-03 13:45:00 +00:00
2018-11-03 13:47:29 +00:00
2018-11-03 13:45:00 +00:00
2018-11-03 13:45:00 +00:00
2018-12-08 20:48:41 +00:00
2017-12-20 10:04:02 +00:00
2017-11-26 11:45:48 +00:00
2016-03-23 22:22:48 +00:00
2017-11-26 11:45:48 +00:00
2016-03-23 22:22:48 +00:00
2018-11-03 13:47:29 +00:00
2018-11-03 13:45:00 +00:00
2018-11-03 13:45:00 +00:00
2018-10-21 10:16:16 +01:00
2018-11-03 13:45:00 +00:00
2018-11-03 13:45:00 +00:00
2018-11-03 13:45:00 +00:00
2018-06-03 15:15:51 +01:00
2018-04-26 07:21:16 +01:00
2018-11-03 13:45:00 +00:00
2018-12-08 20:48:41 +00:00
2017-02-15 19:32:42 +00:00
2018-11-03 13:45:00 +00:00
2018-11-03 13:45:00 +00:00
2018-12-01 17:00:01 +00:00
2018-12-01 17:00:01 +00:00
2010-02-20 11:21:25 +00:00
2018-11-03 13:45:00 +00:00
2018-11-03 13:47:29 +00:00
2018-12-08 21:06:59 +00:00
2018-11-03 13:45:00 +00:00
2017-05-14 16:34:48 +01:00
2018-11-03 13:45:00 +00:00
2018-12-01 17:00:01 +00:00
2018-12-27 16:52:23 +00:00
2018-11-03 13:45:00 +00:00
2018-11-03 13:47:29 +00:00
2018-11-03 13:45:00 +00:00
2018-11-03 13:45:00 +00:00
2018-11-03 13:45:00 +00:00
2016-03-20 18:30:03 +00:00
2018-05-09 09:21:27 +01:00
2003-04-27 11:10:48 +00:00
2007-01-07 10:17:12 +00:00
2007-01-07 10:17:12 +00:00
2007-01-07 10:17:12 +00:00
2007-01-07 10:17:12 +00:00