/[smecontribs]/rpms/smeserver-shared-folders/contribs8/smeserver-shared-folders-0.1-fix_recycle_purge_script.patch
ViewVC logotype

Contents of /rpms/smeserver-shared-folders/contribs8/smeserver-shared-folders-0.1-fix_recycle_purge_script.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Sun Mar 3 22:04:39 2013 UTC (11 years, 9 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-shared-folders-0_1-80_el5_sme, smeserver-shared-folders-0_1-83_el5_sme, smeserver-shared-folders-0_1-84_el5_sme, smeserver-shared-folders-0_1-82_el5_sme, smeserver-shared-folders-0_1-87_el5_sme, smeserver-shared-folders-0_1-86_el5_sme, smeserver-shared-folders-0_1-81_el5_sme, smeserver-shared-folders-0_1-85_el5_sme, smeserver-shared-folders-0_1-79_el5_sme, HEAD
Error occurred while calculating annotation data.
Initial import

1 diff -Nur smeserver-shared-folders-0.1/root/etc/cron.daily/purge-shares-recycle smeserver-shared-folders-0.1_mod/root/etc/cron.daily/purge-shares-recycle
2 --- smeserver-shared-folders-0.1/root/etc/cron.daily/purge-shares-recycle 2011-04-05 19:24:26.000000000 +0200
3 +++ smeserver-shared-folders-0.1_mod/root/etc/cron.daily/purge-shares-recycle 2011-04-05 19:25:10.000000000 +0200
4 @@ -37,7 +37,7 @@
5 my $dir = $share->prop('RecycleBinDir') || 'Recycle Bin';
6 # Skip if dir contains ./
7 next if $dir =~ m#(\./)#;
8 - find(\&remove, "/home/e-smith/files/shares/$key/files/$dir/");
9 + finddepth(\&remove, "/home/e-smith/files/shares/$key/files/$dir/");
10 }
11
12 sub remove{
13 @@ -48,7 +48,7 @@
14 }
15 # Remove empty directories
16 elsif ( -d ){
17 - (scalar <"$_/*">) || rmdir($_);
18 + (scalar <"$_/*">) || rmdir("$_");
19 }
20 }
21

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed