The -d or -t flag must appear after -c/-C/-e/-E flags, because of the

way we add the device name. after the flags.
Addresses PR 40495 from Ryo HAYASAKA.
This commit is contained in:
apb 2009-02-02 09:24:47 +00:00
parent 9281ce080c
commit 1cdee1d2a2
1 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $NetBSD: rndctl,v 1.1 2009/01/04 12:10:30 apb Exp $
# $NetBSD: rndctl,v 1.2 2009/02/02 09:24:47 apb Exp $
#
# PROVIDE: rndctl
@ -56,9 +56,11 @@ rndctl_startcmd()
# Then perform the command with the
# specified device or type name.
#
# Note that -d/-t flag must be last.
#
case "${flags}" in
*[cCeE]*) ;;
*) flags="${flags} -c -e" ;;
*) flags="-c -e ${flags}" ;;
esac
case "${flags}" in
*[dt]*) ;;