commit 9a7a577627b51057795770e79ad25b7a99e1d01e
Author: Elan Ruusamäe <[email protected]>
Date:   Sun Feb 27 15:04:18 2005 +0000

    - 754 permissions for init.d scripts
    
    Changed files:
        adapter.awk -> 1.135

 adapter.awk | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/adapter.awk b/adapter.awk
index 1108d8f..29206ec 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -674,6 +674,10 @@ function use_files_macros( i, n, t, a)
        gsub("^%{_sbindir}", "%attr(755,root,root) %{_sbindir}")
        gsub("^%{_bindir}", "%attr(755,root,root) %{_bindir}")
 
+       if (/^%attr.*\/etc\/rc\.d\/init\.d/ && !/^%attr\(754 *,/) {
+               gsub("^%attr\(... *,", "%attr(754,");
+       }
+
        # sort %verify attrs
        if (match($0, /%verify\(not (.*)\)/)) {
                t = substr($0, RSTART, RLENGTH)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to