[packages/adapter: 140/631] - 754 permissions for init.d scripts
glen
glen at pld-linux.org
Mon Sep 12 19:46:12 CEST 2016
commit 9a7a577627b51057795770e79ad25b7a99e1d01e
Author: Elan Ruusamäe <glen at pld-linux.org>
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
More information about the pld-cvs-commit
mailing list