kov changed gksu/trunk/ChangeLog, gksu/trunk/gksu-migrate-conf.sh

Gustavo Noronha kov at costa.debian.org
Sat Aug 19 19:03:33 UTC 2006


Mensagem de log: 
patch to make gksu-migrate-conf use head in a POSIX-compliant
way


-----


Modified: gksu/trunk/ChangeLog
===================================================================
--- gksu/trunk/ChangeLog	2006-08-19 18:46:33 UTC (rev 706)
+++ gksu/trunk/ChangeLog	2006-08-19 19:03:33 UTC (rev 707)
@@ -1,5 +1,9 @@
 2006-08-19  Gustavo Noronha Silva  <kov at debian.org>
 
+	* gksu-migrate-conf.sh:
+	- patch by Christian Hamar to fix non-POSIX compliant usage of
+	  head (Savannah bugs #16530 and 16807)
+
 	* Release 1.9.4
 
 	* man/man.1:

Modified: gksu/trunk/gksu-migrate-conf.sh
===================================================================
--- gksu/trunk/gksu-migrate-conf.sh	2006-08-19 18:46:33 UTC (rev 706)
+++ gksu/trunk/gksu-migrate-conf.sh	2006-08-19 19:03:33 UTC (rev 707)
@@ -21,7 +21,7 @@
     exit 1
 fi
 
-value=$(grep ^force-grab $CONFFILE | head -1 | cut -d= -f2 | sed 's,#.*,,g' | tr -d '[:space:]' | tr A-Z a-z)
+value=$(grep ^force-grab $CONFFILE | head -n 1 | cut -d= -f2 | sed 's,#.*,,g' | tr -d '[:space:]' | tr A-Z a-z)
 if [ -n "$value" ]; then
     if [[ $value = "yes" ]]; then
 	set_mandatory force-grab true
@@ -31,7 +31,7 @@
 fi
 
 for key in disable-grab sudo-mode prompt always-ask-password; do
-    value=$(grep ^$key $CONFFILE | head -1 | cut -d= -f2 | sed 's,#.*,,g' | tr -d '[:space:]' | tr A-Z a-z)
+    value=$(grep ^$key $CONFFILE | head -n 1 | cut -d= -f2 | sed 's,#.*,,g' | tr -d '[:space:]' | tr A-Z a-z)
 
     if [ -n "$value" ]; then
 	if [[ $value = "yes" ]]; then




More information about the gksu-commits mailing list