]> git.pld-linux.org Git - packages/amanda.git/blob - amanda-amstar-device.patch
perl 5.38.0 rebuild
[packages/amanda.git] / amanda-amstar-device.patch
1 --- amanda-3.2.3/application-src/amstar.c.orig  2012-05-09 14:36:45.583768213 +0200
2 +++ amanda-3.2.3/application-src/amstar.c       2012-05-10 14:41:43.738866665 +0200
3 @@ -454,7 +454,9 @@
4      }
5  
6      set_root_privs(1);
7 -    if (argument->dle.device) {
8 +    if (star_directory) {
9 +       check_dir(star_directory, R_OK);
10 +    } else if (argument->dle.device) {
11         check_dir(argument->dle.device, R_OK);
12      }
13      set_root_privs(0);
14 @@ -499,9 +501,13 @@
15         fprintf(stderr, "ERROR include-list not supported for backup\n");
16      }
17  
18 -    if (check_device(argument) == 0) {
19 -       return;
20 +    set_root_privs(1);
21 +    if (star_directory) {
22 +       check_dir(star_directory, R_OK|X_OK);
23 +    } else if (argument->dle.device) {
24 +       check_dir(argument->dle.device, R_OK|X_OK);
25      }
26 +    set_root_privs(0);
27  
28      qdisk = quote_string(argument->dle.disk);
29      if (argument->calcsize) {
This page took 0.06383 seconds and 3 git commands to generate.