Danny Backx escreveu: > On Thu, 2007-08-23 at 17:20 +0200, Danny Backx wrote: >> Pedro, >> >> The rcp you ported doesn't work for me when I try >> rcp mio:/temp/rshd-log.txt . >>
? It works here. Why shouldn't it? You're passing an absolute path to the device. The '.' is the local path. Wrong example, or am I missing something? >> The reason is that the remote rcp (the one on the PDA) is compiled with >> the mingw32ce toolset, and the libcwd library. That library offers >> chdir() and getcwd() but calls to functions like _open() don't have >> information from the current directory. >> >> There are several ways out of this : >> 1- add code to rcp.c to deal with this >> 2- compile rcp.c with the cegcc toolset which doesn't have this problem >> 3- rewrite rcp.c so it doesn't need this >> >> I feel for 2 because 1 and 3 are reinventing the wheel. Your idea ? >> >> Danny > > Grmbl. > > I tried both 1 and 2. Unfortunately, solution 1 is much less work than > solution 2. > That would be my first choice (option 1). Either implement rcp_open around libcwd's getcwd, or call getcwd before _open/open. Of the top of my head, the case that *may* need it is the recursive directory copy, but even then, it may not be needed. Cheers, Pedro Alves ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel