/[smeserver]/rpms/e-smith-devtools/sme10/e-smith-devtools-2.6.0-no_dir_and_attr_for_symlinks.patch
ViewVC logotype

Contents of /rpms/e-smith-devtools/sme10/e-smith-devtools-2.6.0-no_dir_and_attr_for_symlinks.patch

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


Revision 1.1 - (show annotations) (download)
Sun Feb 7 10:02:27 2016 UTC (8 years, 3 months ago) by vip-ire
Branch: MAIN
CVS Tags: e-smith-devtools-2_6_0-2_el7_sme, e-smith-devtools-2_6_0-4_el7_sme, e-smith-devtools-2_6_0-7_el7_sme, e-smith-devtools-2_6_0-12_el7_sme, e-smith-devtools-2_6_0-11_el7_sme, e-smith-devtools-2_6_0-14_el7_sme, e-smith-devtools-2_6_0-13_el7_sme, e-smith-devtools-2_6_0-6_el7_sme, e-smith-devtools-2_6_0-9_el7_sme, e-smith-devtools-2_6_0-5_el7_sme, e-smith-devtools-2_6_0-8_el7_sme, e-smith-devtools-2_6_0-3_el7_sme, e-smith-devtools-2_6_0-10_el7_sme, HEAD
* Sun Feb 7 2016 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-2.sme
- Don't add %dir and %attr in genfilelist for symlinks, code from
  Charlie Brady [SME: 9232]

1 diff -Nur e-smith-devtools-2.6.0/genfilelist e-smith-devtools-2.6.0_bz9232/genfilelist
2 --- e-smith-devtools-2.6.0/genfilelist 2013-01-25 17:23:28.000000000 +0100
3 +++ e-smith-devtools-2.6.0_bz9232/genfilelist 2016-02-07 10:59:33.708163252 +0100
4 @@ -196,7 +196,16 @@
5 # Remove leading .
6 $path =~ s/^.//;
7
8 - if (-d)
9 + if (-l)
10 + {
11 + # Don't add attributes for symlinks
12 + warn ("Invalid directory permissions for symlink: $path\n")
13 + if (-d and defined $::dirperms{$path});
14 + warn ("Invalid file permissions for symlink: $path\n")
15 + if (-f and defined $::fileperms{$path});
16 + print "$path\n";
17 + }
18 + elsif (-d)
19 {
20 return if (defined $::ignoredirs{$path});
21

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