/[smeserver]/rpms/e-smith-samba/sme8/e-smith-samba-2.2.0-profilev2.patch
ViewVC logotype

Annotation of /rpms/e-smith-samba/sme8/e-smith-samba-2.2.0-profilev2.patch

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


Revision 1.1 - (hide annotations) (download)
Sun Feb 7 16:19:34 2010 UTC (14 years, 8 months ago) by slords
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-11_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-10_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, e-smith-samba-2_2_0-9_el5_sme, HEAD
* Sun Feb 7 2010 Shad L. Lords <slords@mail.com> 2.2.0-9.sme
- Create/remove V2 profile directories [SME: 3666]

1 slords 1.1 diff -up e-smith-samba-2.2.0/root/etc/e-smith/events/actions/user-create-profiledir.profilev2 e-smith-samba-2.2.0/root/etc/e-smith/events/actions/user-create-profiledir
2     --- e-smith-samba-2.2.0/root/etc/e-smith/events/actions/user-create-profiledir.profilev2 2006-03-16 00:01:15.000000000 -0700
3     +++ e-smith-samba-2.2.0/root/etc/e-smith/events/actions/user-create-profiledir 2010-02-07 09:16:26.000000000 -0700
4     @@ -37,18 +37,21 @@ foreach my $user ( @newusers )
5     die "$user is not a user account\n"
6     unless ( grep /^$user$/, @users );
7    
8     - my $dir = "/home/e-smith/files/samba/profiles/$user";
9     + my @dirs = ("/home/e-smith/files/samba/profiles/$user","/home/e-smith/files/samba/profiles/${user}.V2");
10    
11     - my $pre_existing = ( -d $dir );
12     -
13     - $pre_existing || mkdir $dir, 700 || die "Couldn't create directory $dir\n";
14     + foreach my $dir (@dirs)
15     + {
16     + my $pre_existing = ( -d $dir );
17     +
18     + $pre_existing || mkdir $dir, 700 || die "Couldn't create directory $dir\n";
19    
20     - chmod 0700, $dir; # Remove setgid bit
21     -
22     - next if $pre_existing;
23     + chmod 0700, $dir; # Remove setgid bit
24     +
25     + next if $pre_existing;
26    
27     - esmith::util::chownFile($user, $user, $dir) ||
28     - die "Couldn't change ownership of $dir\n";
29     + esmith::util::chownFile($user, $user, $dir) ||
30     + die "Couldn't change ownership of $dir\n";
31     + }
32     }
33    
34     exit (0);
35     diff -up e-smith-samba-2.2.0/root/etc/e-smith/events/actions/user-delete-profiledir.profilev2 e-smith-samba-2.2.0/root/etc/e-smith/events/actions/user-delete-profiledir
36     --- e-smith-samba-2.2.0/root/etc/e-smith/events/actions/user-delete-profiledir.profilev2 2005-08-02 15:16:52.000000000 -0600
37     +++ e-smith-samba-2.2.0/root/etc/e-smith/events/actions/user-delete-profiledir 2010-02-07 09:17:53.000000000 -0700
38     @@ -38,8 +38,14 @@ unless ( defined $a && $a->prop('type')
39    
40     my $dir = "/home/e-smith/files/samba/profiles/$account";
41    
42     -exit 0 unless ( -d $dir );
43     +my $existing = ( -d $dir );
44    
45     -rmtree( $dir ) || die "Couldn't remove tree $dir\n";
46     +$existing && rmtree( $dir ) || die "Couldn't remove tree $dir\n";
47     +
48     +$dir = "/home/e-smith/files/samba/profiles/${account}.V2";
49     +
50     +my $existing = ( -d $dir );
51     +
52     +$existing && rmtree( $dir ) || die "Couldn't remove tree $dir\n";
53    
54     exit (0);

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