[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [SCM] libssh shared repository - branch master updated - release-0-3-0-437-gbfdc48e


sorry, >= ----->  >

Will change it.


Ah, and Merry Christmas !

Aris

Andreas Schneider a écrit :
On Thursday 24 December 2009 10:47:05 you wrote:
+  while ((rc = channel_read(channel, buffer, sizeof(buffer), 0)) >= 0) {

This will loop forever (0 = EOF) ...

+    fwrite(buffer, 1, rc, stdout);
+  }
+
+  if (rc < 0) {
+    channel_close(channel);
+    ssh_disconnect(session);
+    return 1;

Archive administrator: postmaster@lists.cynapses.org