Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/postinstall Sort missing IDs (users and groups) by ...



details:   https://anonhg.NetBSD.org/src/rev/5470ccc89607
branches:  trunk
changeset: 935642:5470ccc89607
user:      simonb <simonb%NetBSD.org@localhost>
date:      Tue Jul 07 12:01:21 2020 +0000

description:
Sort missing IDs (users and groups) by the numeric ID.

diffstat:

 usr.sbin/postinstall/postinstall.in |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r ecdf8ab05047 -r 5470ccc89607 usr.sbin/postinstall/postinstall.in
--- a/usr.sbin/postinstall/postinstall.in       Tue Jul 07 10:58:43 2020 +0000
+++ b/usr.sbin/postinstall/postinstall.in       Tue Jul 07 12:01:21 2020 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: postinstall.in,v 1.30 2020/06/29 23:04:57 riastradh Exp $
+# $NetBSD: postinstall.in,v 1.31 2020/07/07 12:01:21 simonb Exp $
 #
 # Copyright (c) 2002-2015 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -287,7 +287,7 @@
                do
                        ${GREP} -E "^${1}:" ${_srcfile}
                        shift 2
-               done
+               done | sort -t: -k3n
                msg "and adjust if necessary."
                return 1
        fi



Home | Main Index | Thread Index | Old Index