Module Name: src
Committed By: tsutsui
Date: Sat Dec 5 18:33:47 UTC 2020
Modified Files:
src/distrib/miniroot: install.sub
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.55 -r1.56 src/distrib/miniroot/install.sub
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/distrib/miniroot/install.sub
diff -u src/distrib/miniroot/install.sub:1.55 src/distrib/miniroot/install.sub:1.56
--- src/distrib/miniroot/install.sub:1.55 Sat Dec 5 18:29:50 2020
+++ src/distrib/miniroot/install.sub Sat Dec 5 18:33:47 2020
@@ -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 @@ __install_ftp_2
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