packages: amanda/amanda-amstar-device.patch (NEW)=?UTF-8?Q?=20?=- don't unconditionally a...
baggins
baggins at pld-linux.org
Sat May 12 12:22:49 CEST 2012
Author: baggins Date: Sat May 12 10:22:49 2012 GMT
Module: packages Tag: HEAD
---- Log message:
- don't unconditionally assume that '-device' argument is a directory
---- Files affected:
packages/amanda:
amanda-amstar-device.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/amanda/amanda-amstar-device.patch
diff -u /dev/null packages/amanda/amanda-amstar-device.patch:1.1
--- /dev/null Sat May 12 12:22:49 2012
+++ packages/amanda/amanda-amstar-device.patch Sat May 12 12:22:44 2012
@@ -0,0 +1,29 @@
+--- amanda-3.2.3/application-src/amstar.c.orig 2012-05-09 14:36:45.583768213 +0200
++++ amanda-3.2.3/application-src/amstar.c 2012-05-10 14:41:43.738866665 +0200
+@@ -454,7 +454,9 @@
+ }
+
+ set_root_privs(1);
+- if (argument->dle.device) {
++ if (star_directory) {
++ check_dir(star_directory, R_OK);
++ } else if (argument->dle.device) {
+ check_dir(argument->dle.device, R_OK);
+ }
+ set_root_privs(0);
+@@ -499,9 +501,13 @@
+ fprintf(stderr, "ERROR include-list not supported for backup\n");
+ }
+
+- if (check_device(argument) == 0) {
+- return;
++ set_root_privs(1);
++ if (star_directory) {
++ check_dir(star_directory, R_OK|X_OK);
++ } else if (argument->dle.device) {
++ check_dir(argument->dle.device, R_OK|X_OK);
+ }
++ set_root_privs(0);
+
+ qdisk = quote_string(argument->dle.disk);
+ if (argument->calcsize) {
================================================================
More information about the pld-cvs-commit
mailing list