Frederico Rodrigues Abraham wrote:
I ran now with -vv. The error message was, at the end of encryption:

Encrypting /home/ugah/files/wallpapers/13.jpg
Encrypting /home/ugah/files/wallpapers/valley.jpg
Encrypting /home/ugah/files/wallpapers/verde.jpg
Encrypting /home/ugah/files/wallpapers/evocation.jpg
Encrypting /home/ugah/files/wallpapers/sara-02.jpg
file open failed: No such file or directory
ike:~>


My platform is Debian unstable, rsyncrypto 1.09
-- Fred
I suspect that something is wrong with /home/ugah/files/wallpapers/sara-02.jpg, but lets make sure. I'm attaching a patch to rsyncrypto for better error reporting of these errors. Here's what you have to do in order to apply it:

As root:
apt-get update (or aptitude update, or whatever you usually do. Sid already has version 1.10, so I know your system is out of date `-).
apt-get build-dep rsyncrypto
apt-get install devscripts

As a normal user:
cd <some directory where you can work>
apt-get source rsyncrypto
cd rsyncrypto-1.10
patch -p0 < report.patch (the file attached to this email)
dch --nmu
at this point an editor will open up. Just save the file there with no further changes
dpkg-buildpackage

As root again
cd <same directory as before>
dpkg -i rsyncrypto_1.10-1.1_<whatever platform>.deb

Run the program again and report what it says failed.

Shachar
Index: win32/autofd.h
===================================================================
--- win32/autofd.h	(revision 543)
+++ win32/autofd.h	(working copy)
@@ -79,7 +79,7 @@
     autofd( file_t file_p, bool except ) : autohandle(file_p), f_eof(false)
     {
         if( *this==INVALID_HANDLE_VALUE )
-            throw EXCEPT_CLASS("file open failed", GetLastError());
+            throw EXCEPT_CLASS("file handle open failed", GetLastError());
     }
 
     autofd( const char *pathname, int flags, mode_t mode=0 ) : f_eof(false)
@@ -115,7 +115,7 @@
             NULL, disposition, FILE_ATTRIBUTE_NORMAL, NULL ));
 
         if( *this==INVALID_HANDLE_VALUE )
-            throw EXCEPT_CLASS("file open failed", Error2errno(GetLastError()) );
+            throw EXCEPT_CLASS("file open failed", Error2errno(GetLastError()), pathname );
     }
 #endif
     // Default copy constructor and operator= do exactly what we want.
Index: autofd.h
===================================================================
--- autofd.h	(revision 543)
+++ autofd.h	(working copy)
@@ -52,7 +52,7 @@
     autofd( file_t fd_p, bool except ) : fd(fd_p), owner(valid()), f_eof(false)
     {
         if( except && valid() )
-            throw EXCEPT_CLASS("file open failed", errno);
+            throw EXCEPT_CLASS("fd open failed", errno);
     }
 
     autofd( const char *pathname, int flags, mode_t mode=0 ) : owner(true), f_eof(false)
@@ -60,7 +60,7 @@
         fd=open( pathname, flags, mode );
 
         if( fd==-1 )
-            throw EXCEPT_CLASS("file open failed", errno);
+            throw EXCEPT_CLASS("file open failed", errno, pathname);
     }
 #endif
     autofd( const autofd &that ) : fd(that.release()), owner(true), f_eof(false)
--- debian/changelog	2008-05-26 09:00:12.000000000 +0300
+++ debian/changelog	2008-05-26 08:57:22.000000000 +0300
@@ -1,3 +1,10 @@
+rsyncrypto (1.10-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * report patch
+
+ -- Shachar Shemesh <[EMAIL PROTECTED]>  Mon, 26 May 2008 05:56:59 +0000
+
 rsyncrypto (1.10-1) unstable; urgency=low
 
   * New upstream release
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Rsyncrypto-devel mailing list
Rsyncrypto-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsyncrypto-devel

Reply via email to