SPECS: adapter.awk - completed arekm's nobody request

glen glen at pld-linux.org
Wed Oct 12 22:14:08 CEST 2005


Author: glen                         Date: Wed Oct 12 20:14:08 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- completed arekm's nobody request

---- Files affected:
SPECS:
   adapter.awk (1.200 -> 1.201) 

---- Diffs:

================================================================
Index: SPECS/adapter.awk
diff -u SPECS/adapter.awk:1.200 SPECS/adapter.awk:1.201
--- SPECS/adapter.awk:1.200	Wed Oct 12 22:05:08 2005
+++ SPECS/adapter.awk	Wed Oct 12 22:14:03 2005
@@ -938,6 +938,11 @@
 	gsub("^%{_sbindir}", "%attr(755,root,root) %{_sbindir}")
 	gsub("^%{_bindir}", "%attr(755,root,root) %{_bindir}")
 
+	# uid/gid nobody is not valid in %files
+	if (/%attr([^)]*nobody[^)]*)/ && !/FIXME/) {
+		$0 = $0 " # FIXME nobody user/group can't own files! -adapter.awk"
+	}
+
 	# replace back
 	gsub("%{_sysconfdir}/cron\.d", "/etc/cron.d")
 	gsub("%{_sysconfdir}/crontab\.d", "/etc/cron.d")
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/adapter.awk?r1=1.200&r2=1.201&f=u




More information about the pld-cvs-commit mailing list