Hi On Wed, 20 Oct 2010 15:56:41 -0200, Rangel Caio <rang...@gmail.com> wrote: > >> could anyone tell me why the "graph" function at the status page (at > >> the start) doenst work correctly? How can i setup this? I can just > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=556729 > Could someone explain me how to install that patch?
Pick up the attached path (its just copy paste of the bug page, starting in the --- line ) then go the the backuppc dir... in my systems are in /usr/share/backuppc/ this the folder should have this contents. drwxr-xr-x 2 root root 4096 Ago 10 11:44 bin drwxr-xr-x 2 root root 4096 Ago 10 11:44 cgi-bin drwxr-xr-x 2 root root 4096 Ago 10 11:44 conf drwxr-xr-x 2 root root 4096 Mai 21 2008 doc drwxr-xr-x 2 root root 4096 Ago 10 11:44 image drwxr-xr-x 3 root root 4096 Jul 22 2008 lib so do: cd /usr/share/backuppc/ patch -p0 --dry-run < patch this command should return successful on both changes... if true, remove the --dry-run to really apply the patch If the --dry-run didn't return successful , try to edit the file lib/BackupPC/Lib.pm around lines 485 and 553 and compare then with the patch and see if isn't already applied More info about patchs: http://en.wikipedia.org/wiki/Diff good luck higuita -- Naturally the common people don't want war... but after all it is the leaders of a country who determine the policy, and it is always a simple matter to drag the people along, whether it is a democracy, or a fascist dictatorship, or a parliament, or a communist dictatorship. Voice or no voice, the people can always be brought to the bidding of the leaders. That is easy. All you have to do is tell them they are being attacked, and denounce the pacifists for lack of patriotism and exposing the country to danger. It works the same in every country. -- Hermann Goering, Nazi and war criminal, 1883-1946
--- lib/BackupPC/Lib.pm 2007-11-26 04:00:07.000000000 +0100 +++ lib/BackupPC/Lib.pm 2008-04-13 12:52:03.938619979 +0200 @@ -485,10 +485,15 @@ from_to($path, "utf8", $need->{charsetLegacy}) if ( $need->{charsetLegacy} ne "" ); - return if ( !opendir(my $fh, $path) ); + my ($fh); + if ( !opendir($fh, $path) ) { + print "log ERROR: opendir ($path) failed\n"; + return; + } + if ( $IODirentOk ) { @entries = sort({ $a->{inode} <=> $b->{inode} } readdirent($fh)); - map { $_->{type} = 0 + $_->{type} } @entries; # make type numeric + map { $_->{type} = 0 + $_->{type}; $_->{type} = undef if ($_->{type} eq BPC_DT_UNKNOWN); } @entries; # make type numeric, unset unknown types } else { @entries = map { { name => $_} } readdir($fh); } @@ -553,9 +559,11 @@ return if ( !chdir($dir) ); my $entries = $bpc->dirRead(".", {inode => 1, type => 1}); #print Dumper($entries); + #print ("log got ",scalar(@$entries)," entries for $dir\n"); foreach my $f ( @$entries ) { next if ( $f->{name} eq ".." || $f->{name} eq "." && $dontDoCwd ); $param->{wanted}($f->{name}, "$dir/$f->{name}"); + #if ( $f->{type} != BPC_DT_DIR ) { print ("log skipping non-directory ", $f->{name}, " type: ", $f->{type}, "\n"); } next if ( $f->{type} != BPC_DT_DIR || $f->{name} eq "." ); chdir($f->{name}); $bpc->find($param, "$dir/$f->{name}", 1);
signature.asc
Description: PGP signature
------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/