forked from qt-creator/qt-creator
SSH: Do not use sftp -b
The -b option turns on "pure batch mode", i.e. users won't get asked for a password. This does not seem to be overridable. Therefore, we use input file redirection instead. Fixes: QTCREATORBUG-24979 Change-Id: Id1f703ffd61a7b8d194437ee89676770990d0efa Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
This commit is contained in:
@@ -180,9 +180,8 @@ void SftpTransfer::doStart()
|
|||||||
+ QtcProcess::quoteArgUnix(sourceFileOrLinkTarget).toLocal8Bit() + ' '
|
+ QtcProcess::quoteArgUnix(sourceFileOrLinkTarget).toLocal8Bit() + ' '
|
||||||
+ QtcProcess::quoteArgUnix(f.targetFile).toLocal8Bit() + '\n');
|
+ QtcProcess::quoteArgUnix(f.targetFile).toLocal8Bit() + '\n');
|
||||||
}
|
}
|
||||||
d->sftpProc.start(sftpBinary.toString(),
|
d->sftpProc.setStandardInputFile(batchFile.fileName());
|
||||||
QStringList{"-b", QDir::toNativeSeparators(batchFile.fileName())}
|
d->sftpProc.start(sftpBinary.toString(), d->connectionArgs);
|
||||||
<< d->connectionArgs);
|
|
||||||
emit started();
|
emit started();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user