Package: tiger
Version: 1:3.2.1-29
Followup-For: Bug #369501

actually the modification of the sort parameter should take care of the
fact that the position is calculated differently between the old
(deprecated) form +m -n and the new -k x,y

see http://www.softpanorama.org/Tools/sort.shtml

I've attached a patch

-- 
Cyril Chaboisseau
diff -ur scripts.orig/check_group scripts/check_group
--- scripts.orig/check_group    2006-04-25 23:10:51.000000000 +0200
+++ scripts/check_group 2006-06-08 03:01:19.000000000 +0200
@@ -92,7 +92,7 @@
 do
   src1=`$CAT $group1.src`
   $SORT $group1 > $WORKDIR/g1name.$$
-  $SORT -t: +2 -3 $group1 > $WORKDIR/g1gid.$$
+  $SORT -t: -k 3,3 $group1 > $WORKDIR/g1gid.$$
 
   $AWK -F: '{print $1}' $WORKDIR/g1name.$$ |
   $UNIQ -d |
@@ -123,7 +123,7 @@
     src2=`$CAT $group2.src`
 
     $SORT $group2 > $WORKDIR/g2name.$$
-    $SORT -t: +2 -3 $group2 > $WORKDIR/g2gid.$$
+    $SORT -t: -k 3,3 $group2 > $WORKDIR/g2gid.$$
     $JOIN -t: -o 1.1 1.3 2.3 $WORKDIR/g1name.$$ $WORKDIR/g2name.$$ |
     {
       IFS=:
diff -ur scripts.orig/check_inetd scripts/check_inetd
--- scripts.orig/check_inetd    2006-04-25 23:10:51.000000000 +0200
+++ scripts/check_inetd 2006-06-08 03:02:20.000000000 +0200
@@ -236,11 +236,11 @@
   $AWK '$6 != "internal" {print}' $infile |
   $SORT > $WORKDIR/inet1.$$
 # TODO: Consider this change done by ARSC:
-#   $SORT +5 -6 > $WORKDIR/inet1.$$
+#   $SORT -k 6,6 > $WORKDIR/inet1.$$
   $AWK '$6 != "internal" {print}' $INETDFILE |
   $SORT |
 # TODO: Consider this change done by ARSC:
-#   $SORT +5 -6 |
+#   $SORT -k 6,6 |
   $JOIN -j 1 -o 1.1 2.1 1.6 - $WORKDIR/inet1.$$ |
   while read expservice currservice prog
   do
diff -ur scripts.orig/check_passwd scripts/check_passwd
--- scripts.orig/check_passwd   2006-04-25 23:10:51.000000000 +0200
+++ scripts/check_passwd        2006-06-08 03:02:59.000000000 +0200
@@ -197,7 +197,7 @@
 
 
   $SORT $passwd2 > $WORKDIR/p2name.$$
-  $SORT -t: +2 -3 $passwd2 > $WORKDIR/p2uid.$$
+  $SORT -t: -k 3,3 $passwd2 > $WORKDIR/p2uid.$$
   $JOIN -t: -o 1.1 1.3 2.3 $WORKDIR/p1name.$$ $WORKDIR/p2name.$$ |
   {
     IFS=:
@@ -254,7 +254,7 @@
   check_passwd_entries
 
   $SORT $passwd_set > $WORKDIR/p1name.$$
-  $SORT -t: +2 -3 $passwd_set > $WORKDIR/p1uid.$$
+  $SORT -t: -k 3,3 $passwd_set > $WORKDIR/p1uid.$$
 
   # Check for duplicate usernames.
   $AWK -F: '{print $1}' $WORKDIR/p1name.$$ |

Reply via email to