summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2019-04-14 13:11:06 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2019-04-14 13:11:06 +0200
commitf2cf59b47f379257de7822670b54702826884980 (patch)
tree8ccfef5782614a8b2734861b998b51450c67b846 /src
parent095c6eac1b9385f30a604af5450cf09066864de8 (diff)
downloadcssh-f2cf59b47f379257de7822670b54702826884980.tar.gz
cssh-f2cf59b47f379257de7822670b54702826884980.tar.bz2
some debugging and fixing of the SCP mode
Diffstat (limited to 'src')
-rw-r--r--src/cssh.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/cssh.c b/src/cssh.c
index ae81df8..c45f310 100644
--- a/src/cssh.c
+++ b/src/cssh.c
@@ -1252,10 +1252,12 @@ SHELL_EOF:
rc = mkdir( full_path, 0750 );
if( rc < 0 ) {
- fprintf( stderr, "ERROR: failed to create base directory '%s' for host '%s': %s\n",
- full_path, host[i], strerror( errno ) );
- cleanup_sessions( &session, NULL, &scp_data, host, port, nof_sessions, args_info.verbose_given > 0 );
- exit( EXIT_FAILURE );
+ if( errno != EEXIST ) {
+ fprintf( stderr, "ERROR: failed to create base directory '%s' for host '%s': %s\n",
+ full_path, host[i], strerror( errno ) );
+ cleanup_sessions( &session, NULL, &scp_data, host, port, nof_sessions, args_info.verbose_given > 0 );
+ exit( EXIT_FAILURE );
+ }
}
} else {
scp_data[i].filename = pwd;