*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
r = receive_file (fwrite_cb, &fp);
if (r == -1) { /* write error */
r = receive_file (fwrite_cb, &fp);
if (r == -1) { /* write error */
shell_quote (cmd+15, len-15, dir);
strcat (cmd, " -cf - .");
fp = popen (cmd, "r");
if (fp == NULL) {
reply_with_perror ("%s", cmd);
shell_quote (cmd+15, len-15, dir);
strcat (cmd, " -cf - .");
fp = popen (cmd, "r");
if (fp == NULL) {
reply_with_perror ("%s", cmd);
/* Now we must send the reply message, before the file contents. After
* this there is no opportunity in the protocol to send any error
/* Now we must send the reply message, before the file contents. After
* this there is no opportunity in the protocol to send any error
r = receive_file (fwrite_cb, &fp);
if (r == -1) { /* write error */
r = receive_file (fwrite_cb, &fp);
if (r == -1) { /* write error */
shell_quote (cmd+15, len-15, dir);
strcat (cmd, " -zcf - .");
fp = popen (cmd, "r");
if (fp == NULL) {
reply_with_perror ("%s", cmd);
shell_quote (cmd+15, len-15, dir);
strcat (cmd, " -zcf - .");
fp = popen (cmd, "r");
if (fp == NULL) {
reply_with_perror ("%s", cmd);
/* Now we must send the reply message, before the file contents. After
* this there is no opportunity in the protocol to send any error
/* Now we must send the reply message, before the file contents. After
* this there is no opportunity in the protocol to send any error