Search
j0ke.net Open Build Service
>
Projects
>
server:backup
>
rsnapshot
> rsnapshot-include_dir.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File rsnapshot-include_dir.patch of Package rsnapshot (Revision 8)
Currently displaying revision
8
,
show latest
--- rsnapshot-program.pl.orig 2011-11-07 10:08:54.000000000 +0100 +++ rsnapshot-program.pl 2011-11-07 11:05:51.000000000 +0100 @@ -581,7 +581,20 @@ next; } } - + # INCLUDE dir + if($var eq 'include_dir') { + opendir(DIR, $value) or bail("Could not open $value"); + foreach ( sort grep(/^.*\.conf$/,readdir(DIR)) ) { + my $file = $value . "/" . $_; + if ( -f $file && -r $file ) { + $line_syntax_ok = 1; + parse_config_file($file); + } else { + config_err($file_line_num, "$line - can't find or read file '$file'"); + next; + } + } + } # CONFIG_VERSION if ($var eq 'config_version') { if (defined($value)) {