mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-24 07:40:52 +00:00
Remove some unnecessary sanity checks that break "sh MAKEDEV cd"
and others, because test(1) does not do shortcut evaluation. Fix the same off-by-one error for acd*t* that revision 1.326 fixed for other *cd devices. Suggested by: bde Reviewed by: bde
This commit is contained in:
parent
5965373e69
commit
d64915d6e3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=101652
@ -796,10 +796,10 @@ acd*t*)
|
||||
tracks=`expr $i : '.*t\(.*\)'`;
|
||||
name=acd;
|
||||
chr=117;
|
||||
if [ -z "${units}" -o "${units}" -le 0 ]; then
|
||||
units=1
|
||||
if [ -z "${units}" ]; then
|
||||
units=0
|
||||
fi
|
||||
if [ -z "${tracks}" -o "${tracks}" -le 0 ]; then
|
||||
if [ -z "${tracks}" ]; then
|
||||
tracks=100
|
||||
fi
|
||||
if [ "${units}" -le 31 -a "${tracks}" -le 169 ]; then
|
||||
@ -830,7 +830,7 @@ acd*|cd*|mcd*|scd*)
|
||||
mcd*) units=`expr $i : '...\(.*\)'`; name=mcd; chr=29;;
|
||||
scd*) units=`expr $i : '...\(.*\)'`; name=scd; chr=45;;
|
||||
esac
|
||||
if [ -z "${units}" -o "${units}" -le 0 ]; then
|
||||
if [ -z "${units}" ]; then
|
||||
units=0
|
||||
fi
|
||||
if [ "${units}" -le 31 ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user