Package: dirvish
Version: 1.2.1-1.2
Severity: normal
Tags: patch
Dear Maintainer,
*** Reporter, please consider answering these questions, where appropriate ***
After an rsync error dirvish did no chmod on the backup dir.
This is an problem because monitoring tools, which are normaly not running as
root, aren't able to read the files in there (summary/rsync_error/log).
The fix of this issue would be really simple, just move the chmod line before
the exit command.
-----
--- dirvish.pl 2005-02-19 02:07:53.000000000 +0100
+++ dirvish.patch 2015-11-12 13:53:59.352294995 +0100
@@ -800,6 +800,8 @@
"$vault/$image/rsync_error",
"$vault/$image/log";
+chmod oct($$Options{'image-perm'}) || 0755, "$vault/$image";
+
$Status eq 'success' or exit 149;
$$Options{log} =~ /.*(gzip)|(bzip2)/
@@ -824,8 +826,6 @@
and system "$$Options{index} $vault/$image/index";
}
-chmod oct($$Options{'image-perm'}) || 0755, "$vault/$image";
-
exit 0;
sub errorscan
-----
*** End of the template - remove these template lines ***
-- System Information:
Debian Release: 8.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages dirvish depends on:
ii libtime-modules-perl 2013.1113-2
ii libtime-period-perl 1.20-8
ii perl 5.20.2-3+deb8u1
ii perl-modules 5.20.2-3+deb8u1
ii rsync 3.1.1-3
Versions of packages dirvish recommends:
pn ssh <none>
dirvish suggests no packages.
-- no debconf information