mirror of
https://github.com/fspc/gbootroot.git
synced 2025-02-23 17:13:22 -05:00
Changed mind about 0444 for root, actually, the symlink provides the protection,
and the permissions are necessary, too .. the original ones.
This commit is contained in:
parent
2f718bd0c8
commit
770ee31a7c
@ -584,11 +584,6 @@ if (-d $global_yard_replacements) {
|
|||||||
#system "cp -a $File::Find::name $home_yard_replacements/$replacement > /dev/null 2>&1";
|
#system "cp -a $File::Find::name $home_yard_replacements/$replacement > /dev/null 2>&1";
|
||||||
system "mkdir $home_yard_replacements/$replacement > /dev/null 2>&1" if -d $File::Find::name;
|
system "mkdir $home_yard_replacements/$replacement > /dev/null 2>&1" if -d $File::Find::name;
|
||||||
symlink_builder( $File::Find::name,"$home_yard_replacements/$replacement") if !-d $File::Find::name;
|
symlink_builder( $File::Find::name,"$home_yard_replacements/$replacement") if !-d $File::Find::name;
|
||||||
# Administrator shouldn't be editing global files.
|
|
||||||
if ( $> == 0 ) {
|
|
||||||
system "chmod 0444 $File::Find::name"
|
|
||||||
if !-d $File::Find::name;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}, $global_yard_replacements;
|
}, $global_yard_replacements;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user