/[smeserver]/rpms/e-smith-samba/sme8/e-smith-samba-2.2.0-fail-silently-on-non-existent-folder.patch
ViewVC logotype

Annotation of /rpms/e-smith-samba/sme8/e-smith-samba-2.2.0-fail-silently-on-non-existent-folder.patch

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


Revision 1.1 - (hide annotations) (download)
Sat Mar 6 16:03:58 2010 UTC (14 years, 7 months ago) by snetram
Branch: MAIN
CVS Tags: e-smith-samba-2_2_0-12_el5_sme, e-smith-samba-2_2_0-47_el5_sme, e-smith-samba-2_2_0-19_el5_sme, e-smith-samba-2_2_0-52_el5_sme, e-smith-samba-2_2_0-13_el5_sme, e-smith-samba-2_2_0-15_el5_sme, e-smith-samba-2_2_0-49_el5_sme, e-smith-samba-2_2_0-23_el5_sme, e-smith-samba-2_2_0-24_el5_sme, e-smith-samba-2_2_0-14_el5_sme, e-smith-samba-2_2_0-40_el5_sme, e-smith-samba-2_2_0-43_el5_sme, e-smith-samba-2_2_0-44_el5_sme, e-smith-samba-2_2_0-63_el5_sme, e-smith-samba--, e-smith-samba-2_2_0-61_el5_sme, e-smith-samba-2_2_0-31_el5_sme, e-smith-samba-2_2_0-32_el5_sme, e-smith-samba-2_2_0-57_el5_sme, e-smith-samba-2_2_0-54_el5_sme, e-smith-samba-2_2_0-41_el5_sme, e-smith-samba-2_2_0-17_el5_sme, e-smith-samba-2_2_0-55_el5_sme, e-smith-samba-2_2_0-39_el5_sme, e-smith-samba-2_2_0-46_el5_sme, e-smith-samba-2_2_0-53_el5_sme, e-smith-samba-2_2_0-50_el5_sme, e-smith-samba-2_2_0-16_el5_sme, e-smith-samba-2_2_0-18_el5_sme, e-smith-samba-2_2_0-22_el5_sme, e-smith-samba-2_2_0-58_el5_sme, e-smith-samba-2_2_0-30_el5_sme, e-smith-samba-2_2_0-33_el5_sme, e-smith-samba-2_2_0-56_el5_sme, e-smith-samba-2_2_0-51_el5_sme, e-smith-samba-2_2_0-42_el5_sme, e-smith-samba-2_2_0-65_el5_sme, e-smith-samba-2_2_0-64_el5_sme, e-smith-samba-2_2_0-60_el5_sme, e-smith-samba-2_2_0-62_el5_sme, e-smith-samba-2_2_0-34_el5_sme, e-smith-samba-2_2_0-35_el5_sme, e-smith-samba-2_2_0-45_el5_sme, e-smith-samba-2_2_0-48_el5_sme, e-smith-samba-2_2_0-21_el5_sme, e-smith-samba-2_2_0-37_el5_sme, e-smith-samba-2_2_0-38_el5_sme, e-smith-samba-2_2_0-36_el5_sme, e-smith-samba-2_2_0-20_el5_sme, e-smith-samba-2_2_0-29_el5_sme, e-smith-samba-2_2_0-66_el5_sme, e-smith-samba-2_2_0-59_el5_sme, e-smith-samba-2_2_0-26_el5_sme, e-smith-samba-2_2_0-25_el5_sme, HEAD
* Sat Mar 6 2010 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-12.sme
- Add missing comma in previous patch [SME: 5821]
- Silently skip non-existent profile folder [SME: 5821]

1 snetram 1.1 diff -up e-smith-samba-2.2.0/root/etc/e-smith/events/actions/user-delete-profiledir.fail-silently-on-non-existent-folder e-smith-samba-2.2.0/root/etc/e-smith/events/actions/user-delete-profiledir
2     --- e-smith-samba-2.2.0/root/etc/e-smith/events/actions/user-delete-profiledir.fail-silently-on-non-existent-folder 2010-03-06 16:57:45.000000000 +0100
3     +++ e-smith-samba-2.2.0/root/etc/e-smith/events/actions/user-delete-profiledir 2010-03-06 16:57:34.000000000 +0100
4     @@ -36,13 +36,12 @@ unless ( defined $a && $a->prop('type')
5     exit (0);
6     }
7    
8     -my @dirs = ("/home/e-smith/files/samba/profiles/$account" "/home/e-smith/files/samba/profiles/$account.V2");
9     +my @dirs = ("/home/e-smith/files/samba/profiles/$account", "/home/e-smith/files/samba/profiles/$account.V2");
10    
11     foreach (@dirs) {
12    
13     - my $existing = ( -d $_ );
14     -
15     - $existing && rmtree( $_ ) || die "Couldn't remove tree $_\n";
16     + next unless -d $_;
17     + rmtree( $_ ) || die "Couldn't remove tree $_\n";
18    
19     }
20    

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