diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-06-06 17:15:06 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-07-09 01:16:39 +0200 |
| commit | afb42c9639d754a6e3520695c04c5b436c5b749b (patch) | |
| tree | 0ac795c912b85b13d287c7ede9f5a224a8f3dd3a | |
| parent | a3642d8265a8186409e8755608609dee9dd2fbf6 (diff) | |
Fix SCP upload with an empty destination.
| -rw-r--r-- | src/lib/scp_uploader.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/scp_uploader.cc b/src/lib/scp_uploader.cc index 1665c7a53..2735f0155 100644 --- a/src/lib/scp_uploader.cc +++ b/src/lib/scp_uploader.cc @@ -70,7 +70,7 @@ LIBDCP_ENABLE_WARNINGS } LIBDCP_DISABLE_WARNINGS - _scp = ssh_scp_new(_session, SSH_SCP_WRITE | SSH_SCP_RECURSIVE, _destination.path.c_str()); + _scp = ssh_scp_new(_session, SSH_SCP_WRITE | SSH_SCP_RECURSIVE, _destination.path.empty() ? "." : _destination.path.c_str()); LIBDCP_ENABLE_WARNINGS if (!_scp) { throw NetworkError(String::compose(_("SSH error [%1] (%2)"), "ssh_scp_new", ssh_get_error(_session))); |
