@ -0,0 +1,57 @@ |
|||||
|
diff -pruN ircp-0.3/src/ircp.c ircp-0.3_patch/src/ircp.c
|
||||
|
--- ircp-0.3/src/ircp.c 2002-12-01 18:34:41.000000000 +0100
|
||||
|
+++ ircp-0.3_patch/src/ircp.c 2004-05-27 10:23:01.008095904 +0200
|
||||
|
@@ -72,10 +72,15 @@ int main(int argc, char *argv[])
|
||||
|
return -1; |
||||
|
} |
||||
|
|
||||
|
- if(argc >= 3)
|
||||
|
+ if(argc >= 3){
|
||||
|
+ downloadpath = (char *)malloc(strlen(argv[2]+1));
|
||||
|
+ sprintf(downloadpath, "%s", argv[2]);
|
||||
|
inbox = argv[2]; |
||||
|
- else
|
||||
|
+ } else {
|
||||
|
+ downloadpath = (char *)malloc(2);
|
||||
|
+ sprintf(downloadpath, ".");
|
||||
|
inbox = "."; |
||||
|
+ }
|
||||
|
|
||||
|
ircp_srv_recv(srv, inbox); |
||||
|
#ifdef DEBUG_TCP |
||||
|
diff -pruN ircp-0.3/src/ircp.h ircp-0.3_patch/src/ircp.h
|
||||
|
--- ircp-0.3/src/ircp.h 2002-12-01 18:34:41.000000000 +0100
|
||||
|
+++ ircp-0.3_patch/src/ircp.h 2004-05-27 10:21:24.422779104 +0200
|
||||
|
@@ -22,6 +22,8 @@ enum {
|
||||
|
IRCP_EV_RECEIVING, |
||||
|
}; |
||||
|
|
||||
|
+char *downloadpath;
|
||||
|
+
|
||||
|
/* Number of bytes passed at one time to OBEX */ |
||||
|
#define STREAM_CHUNK 4096 |
||||
|
|
||||
|
diff -pruN ircp-0.3/src/ircp_server.c ircp-0.3_patch/src/ircp_server.c
|
||||
|
--- ircp-0.3/src/ircp_server.c 2002-12-01 18:34:41.000000000 +0100
|
||||
|
+++ ircp-0.3_patch/src/ircp_server.c 2004-05-27 10:22:44.161656952 +0200
|
||||
|
@@ -223,15 +223,19 @@ static int new_file(ircp_server_t *srv,
|
||||
|
} |
||||
|
} |
||||
|
if(name == NULL) { |
||||
|
+#if 0
|
||||
|
DEBUG(0, "Got a PUT without a name. Refusing\n"); |
||||
|
/* Send back error */ |
||||
|
OBEX_ObjectSetRsp(object, OBEX_RSP_BAD_REQUEST, OBEX_RSP_BAD_REQUEST); |
||||
|
srv->infocb(IRCP_EV_ERR, ""); |
||||
|
goto out; |
||||
|
+#endif
|
||||
|
+ name=(char *)malloc(28);
|
||||
|
+ sprintf(name, "ircp_receive_i_have_no_name");
|
||||
|
} |
||||
|
|
||||
|
srv->infocb(IRCP_EV_RECEIVING, name); |
||||
|
- srv->fd = ircp_open_safe("", name);
|
||||
|
+ srv->fd = ircp_open_safe(downloadpath, name);
|
||||
|
|
||||
|
ret = srv->fd; |
||||
|
|
@ -0,0 +1,42 @@ |
|||||
|
|
||||
|
[COPY] --- ROCK-COPYRIGHT-NOTE-BEGIN --- |
||||
|
[COPY] |
||||
|
[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
||||
|
[COPY] Please add additional copyright information _after_ the line containing |
||||
|
[COPY] the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by |
||||
|
[COPY] the ./scripts/Create-CopyPatch script. Do not edit this copyright text! |
||||
|
[COPY] |
||||
|
[COPY] ROCK Linux: rock-src/package/blindcoder/ircp/ircp.desc |
||||
|
[COPY] ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf |
||||
|
[COPY] |
||||
|
[COPY] This program is free software; you can redistribute it and/or modify |
||||
|
[COPY] it under the terms of the GNU General Public License as published by |
||||
|
[COPY] the Free Software Foundation; either version 2 of the License, or |
||||
|
[COPY] (at your option) any later version. A copy of the GNU General Public |
||||
|
[COPY] License can be found at Documentation/COPYING. |
||||
|
[COPY] |
||||
|
[COPY] Many people helped and are helping developing ROCK Linux. Please |
||||
|
[COPY] have a look at http://www.rocklinux.org/ and the Documentation/TEAM |
||||
|
[COPY] file for details. |
||||
|
[COPY] |
||||
|
[COPY] --- ROCK-COPYRIGHT-NOTE-END --- |
||||
|
|
||||
|
[I] a tool to send and receive files over IRDA |
||||
|
|
||||
|
[T] ircp enables you to transfer files to and from other IRDA devices |
||||
|
[T] such as mobile phones, handhelds and laptops. |
||||
|
|
||||
|
[U] http://openobex.sourceforge.net/ |
||||
|
|
||||
|
[A] Christian W. Zuckschwerdt <zany@triq.net> |
||||
|
[M] Benjamin Schieder <blindcoder@scavenger.homeip.net> |
||||
|
|
||||
|
[C] extra/filesystem |
||||
|
|
||||
|
[L] GPL |
||||
|
[S] Beta |
||||
|
[V] 0.3 |
||||
|
[P] X -----5---9 800.000 |
||||
|
|
||||
|
[D] 3354670973 ircp-0.3.tar.gz http://dl.sourceforge.net/sourceforge/openobex/ |
||||
|
|