Browse Source

Use a bit better idiom to get most recent version of the library

being reordered.
okay tb@ deraadt@
OPENBSD_6_2
zhuk 7 years ago
parent
commit
29483b4ca8
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/etc/rc

+ 2
- 2
src/etc/rc View File

@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.512 2017/07/18 16:29:44 rpe Exp $
# $OpenBSD: rc,v 1.513 2017/07/18 19:31:20 zhuk Exp $
# System startup script run by init on autoboot or after single-user. # System startup script run by init on autoboot or after single-user.
# Output and error are redirected to console by init, and the console is the # Output and error are redirected to console by init, and the console is the
@ -182,7 +182,7 @@ reorder_libs() {
# Only choose the latest version of the libraries. # Only choose the latest version of the libraries.
for _liba in /usr/lib/lib{c,crypto}; do for _liba in /usr/lib/lib{c,crypto}; do
_libas="$_libas $(ls $_liba.so.+([0-9.]).a | sort -V | tail -1)"
_libas="$_libas $(ls $_liba.so.+([0-9.]).a | sort -rV | head -1)"
done done
_libas=${_libas# } _libas=${_libas# }


Loading…
Cancel
Save