Bug 173672 - app-backup/flexbackup-1.2.1-r3 remote host buffer test is broken
Bug#: 173672 Product:  Gentoo Linux Version: 2006.1 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: maintainer-needed@gentoo.org Reported By: john_r_graham@mindspring.com
Component: Applications
URL: 
Summary: app-backup/flexbackup-1.2.1-r3 remote host buffer test is broken
Keywords:  
Status Whiteboard: 
Opened: 2007-04-07 14:08 0000
Description:   Opened: 2007-04-07 14:08 0000
The "flexbackup-1.2.1-secure-tempfile.patch" introduced in flexbackup-1.2.1-r2
to increase the uniqueness of the temporary files inadvertently broke the
remote buffer test used when flexbackup backs up remote hosts.

Although the patch author properly manages temporary files on the remote host
during the actual backup, during the remote buffer test (in the
test_bufferprog() function) the temporary directory is not created on the
remote machine.

There's also a weakness in the code that parses the messages retrieved from the
remote host:  flexbackup is actually not detecting the failure and is reporting
success even though the remote buffer tests aren't actually run.

I've included a patch that adds the code to properly create the temporary
directory on the remote host (and delete it when the test is done) and improves
the parsing of the results so that failures like this aren't missed.

The patch was generated against flexbackup-1.2.1-r3 and is additive to all the
patches that that ebuild currently applies.

- John

------- Comment #1 From John R. Graham 2007-04-07 14:41:17 0000 -------
Created an attachment (id=115669) [details]
Patch fixes remote buffer test.

------- Comment #2 From John R. Graham 2007-04-15 20:52:40 0000 -------
This fix is in Portage now as flexbackup-1.2.1-r4 thanks to the help of the
Gentoo Sunrise team.