Enlightenment CVS committal
Author : lordchaos
Project : e17
Module : apps/evfs
Dir : e17/apps/evfs/src/plugins
Modified Files:
evfs_fs_sftp.c
Log Message:
* Shh
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/plugins/evfs_fs_sftp.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- evfs_fs_sftp.c 22 Feb 2006 15:07:16 -0000 1.9
+++ evfs_fs_sftp.c 26 Feb 2006 04:42:20 -0000 1.10
@@ -131,7 +131,7 @@
if (flags & SSH2_FILEXFER_ATTR_SIZE) {
uint64 size = read_uint64(c);
info->st_size = size;
- printf ("Size: %lld\n", info->st_size);
+ //printf ("Size: %lld\n", info->st_size);
}
if (flags & SSH2_FILEXFER_ATTR_UIDGID) {
@@ -472,8 +472,6 @@
long nid;
SftpGenericHandle* rhandle;
- printf("Requesting a stat of '%s'\n", path);
-
nid = sftp_request_id_get_next();
/*Create a handle for this op*/
@@ -556,8 +554,6 @@
char* str;
SftpOpenHandle* handle = NEW(SftpOpenHandle);
- printf("Reading a handle..\n");
-
/*Read the identifier*/
id = read_int32(c);
@@ -566,9 +562,9 @@
handle->sftp_handle= str;
handle->sftp_handle_len = length;
- printf(" [*] Reading handle with id %d, length %d\n", id, length);
+ //printf(" [*] Reading handle with id %d, length %d\n", id, length);
- printf(" [*] Writing handle to hash (%p) , with id %d\n", handle, id);
+ //printf(" [*] Writing handle to hash (%p) , with id %d\n", handle,
id);
ecore_hash_set(conn->handle_hash, (int*)id, handle);
}
@@ -713,7 +709,7 @@
return;
} else if (conn->packet_cache_size > conn->packet_length) {
- printf("Too much data!!!!!!!!!!!!!!!!!!!!\n");
+ /*printf("Too much data!!!!!!!!!!!!!!!!!!!!\n");*/
}
MORE_PACKETS:
@@ -722,7 +718,7 @@
switch (sftp_type) {
case SSH2_FXP_HANDLE:
- printf (" [*] TYPE: HANDLE: %d\n", sftp_type);
+ //printf (" [*] TYPE: HANDLE: %d\n", sftp_type);
sftp_read_handle(conn, &c);
break;
case SSH2_FXP_STATUS:
@@ -730,24 +726,24 @@
sftp_handle_status(conn, &c);
break;
case SSH2_FXP_ATTRS:
- printf (" [*] Received SSH ATTRIBUTES\n");
+ //printf (" [*] Received SSH ATTRIBUTES\n");
sftp_handle_attr(conn, &c);
break;
case SSH2_FXP_VERSION:
- printf (" [*] TYPE: VERSION: %d\n",sftp_type);
+ //printf (" [*] TYPE: VERSION: %d\n",sftp_type);
conn->status = SFTP_CONNECTED;
goto FREE; /*Ignore the reply for now - FIXME*/
break;
case SSH2_FXP_NAME:
- printf (" [*] TYPE: NAME: %d\n", sftp_type);
+ //printf (" [*] TYPE: NAME: %d\n", sftp_type);
sftp_read_names(conn, &c);
break;
case SSH2_FXP_DATA:
- printf(" [*] TYPE: DATA\n");
+ //printf(" [*] TYPE: DATA\n");
sftp_handle_data(conn, &c);
break;
default:
- printf (" [*] TYPE: UNKNOWN: %d\n", sftp_type);
+ //printf (" [*] TYPE: UNKNOWN: %d\n", sftp_type);
/*Out of sync? We have to leave..*/
goto FREE;
break;
@@ -758,12 +754,12 @@
int remaining = conn->packet_cache + conn->packet_cache_size - c;
char* old_pointer = conn->packet_cache;
- printf("%p is less than %p, more packets (%d)\n", c, conn->packet_cache
+ conn->packet_cache_size, (conn->packet_cache + conn->packet_cache_size) - c);
+ //printf("%p is less than %p, more packets (%d)\n", c,
conn->packet_cache + conn->packet_cache_size, (conn->packet_cache +
conn->packet_cache_size) - c);
char *d = c;
length = read_int32(&d);
- printf("We have a sub-packet - length %d - remaining %d\n", length,
remaining);
+ //printf("We have a sub-packet - length %d - remaining %d\n", length,
remaining);
conn->packet_length = length;
conn->packet_cache = malloc(remaining - sizeof(int) );
@@ -774,10 +770,10 @@
if (conn->packet_cache_size >= length) {
- printf("GOING TO 'more packets'\n");
+ //printf("GOING TO 'more packets'\n");
goto MORE_PACKETS;
} else {
- printf("Waiting for more data for this packet..\n");
+ //printf("Waiting for more data for this packet..\n");
return;
}
}
@@ -996,7 +992,6 @@
usleep(10);
}
- printf("Opening file '%s' with sftp..\n", file->path);
rid = sftp_file_open(conn, path, 0);
/*Wait till we have a handle*/
@@ -1010,8 +1005,6 @@
handle->conn = conn;
ecore_hash_set(sftp_open_handles, (long*)file->fd, handle);
- printf("Opened!\n");
-
free(host);
free(path);
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs