]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- no globs for sgids too
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 27 Dec 2005 06:58:32 +0000 (06:58 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- ExcludeArch after ExclusiveArch if both are present

Changed files:
    adapter.awk -> 1.257

adapter.awk

index d52c5ef477b151e9b0ee7a94942686d22de89dc4..1358db9c1f81a472e2de5cece84027f4f9deef52 100644 (file)
@@ -125,7 +125,7 @@ function b_makekey(a, b,    s) {
     gsub(/^Conflicts/, "X3Conflicts", s);
     gsub(/^BuildArch/, "X4BuildArch", s);
     gsub(/^ExclusiveArch/, "X6ExclusiveArch", s);
-    gsub(/^ExcludeArch/, "X6ExcludeArch", s);
+    gsub(/^ExcludeArch/, "X7ExcludeArch", s);
     gsub(/^BuildRoot/, "X9BuildRoot", s);
 
 #      printf("%s -> %s\n", a""b, s);
@@ -1088,9 +1088,9 @@ function use_files_macros(        i, n, t, a)
                $0 = $0 " # FIXME nobody user/group can't own files! -adapter.awk"
        }
 
-       # suid programs with globs are evil
-       if (/%attr\(4...,.*\*/ && !/FIXME/) {
-               $0 = $0 " # FIXME no globs for suid files"
+       # s[gu]id programs with globs are evil
+       if (/%attr\([246]...,.*\*/ && !/FIXME/) {
+               $0 = $0 " # FIXME no globs for suid/sgid files"
        }
 
        # replace back
This page took 0.030144 seconds and 4 git commands to generate.