Source-Changes-HG archive

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

[src/trunk]: src/distrib/miniroot Explicitly sort set names fetched via ftp n...



details:   https://anonhg.NetBSD.org/src/rev/faea2dc0c563
branches:  trunk
changeset: 957617:faea2dc0c563
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Dec 05 18:33:47 2020 +0000

description:
Explicitly sort set names fetched via ftp nlist.

Several binary sets are stored as symbolic links on releases and
it seems some ftpd doesn't sort nlist outputs by name in such case.

Worth to pullup to netbsd-9 and netbsd-8.

diffstat:

 distrib/miniroot/install.sub |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 97f0e0ab8330 -r faea2dc0c563 distrib/miniroot/install.sub
--- a/distrib/miniroot/install.sub      Sat Dec 05 18:29:50 2020 +0000
+++ b/distrib/miniroot/install.sub      Sat Dec 05 18:33:47 2020 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-#      $NetBSD: install.sub,v 1.55 2020/12/05 18:29:50 tsutsui Exp $
+#      $NetBSD: install.sub,v 1.56 2020/12/05 18:33:47 tsutsui Exp $
 #
 # Copyright (c) 1996 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -713,7 +713,7 @@
                if [ $resp = '?' ]; then
                        sh /tmp/ftp-dir.sh
                else
-                       _sets=$(sh /tmp/ftp-dir.sh | sh /tmp/fname_filter.sh)
+                       _sets=$(sh /tmp/ftp-dir.sh | sort -u | sh /tmp/fname_filter.sh)
                fi
        done
        rm -f /tmp/ftp-dir.sh /tmp/fname_filter.sh



Home | Main Index | Thread Index | Old Index