1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-03-13 18:43:52 -05:00
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
..
2018-12-01 17:04:44 +00:00
2018-12-01 17:04:44 +00:00
2018-12-01 17:04:44 +00:00
2018-12-08 20:48:41 +00:00
2018-12-08 20:48:41 +00:00
2018-11-03 13:45:00 +00:00