summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/filetransfer.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/filetransfer.cpp b/noncore/apps/opie-console/filetransfer.cpp
index 97552fe..b39dc95 100644
--- a/noncore/apps/opie-console/filetransfer.cpp
+++ b/noncore/apps/opie-console/filetransfer.cpp
@@ -57,8 +57,21 @@ void FileTransfer::sendFile( const QString& file ) {
57 char* binray = "-b"; 57 char* binray = "-b";
58 58
59 59
60 char* typus;
61 switch(m_type ) {
62 case SZ:
63 typus = "";
64 break;
65 case SX:
66 typus = "-X";
67 break;
68 case SY:
69 typus = "--ymodem";
70 break;
71 }
72
60 /* we should never return from here */ 73 /* we should never return from here */
61 execlp("sz", "sz", verbose, binray, file.latin1(), NULL ); 74 execlp("sz", "sz", verbose, binray, file.latin1(), typus, NULL );
62 75
63 /* communication for error!*/ 76 /* communication for error!*/
64 char resultByte =1; 77 char resultByte =1;