2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 18:08:23 +00:00

Elminate the $OS variable, we can just use $host_os instead.

This commit is contained in:
Todd C. Miller 2023-01-19 13:22:31 -07:00
parent cb56fd2edb
commit d409ba67c6
2 changed files with 2 additions and 6 deletions

4
configure vendored
View File

@ -17454,11 +17454,9 @@ fi
sudo_cv_prev_host="$host" sudo_cv_prev_host="$host"
if test -n "$host_os"; then if test -n "$host_os"; then
OS=`echo $host_os | sed 's/[0-9].*//'`
OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'` OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
OSMAJOR=`echo $OSREV | sed 's/\..*$//'` OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
else else
OS="unknown"
OSREV=0 OSREV=0
OSMAJOR=0 OSMAJOR=0
fi fi
@ -31543,7 +31541,7 @@ fi
fi fi
case "$OS" in case "$host_os" in
netbsd*) netbsd*)
;; ;;
*) *)

View File

@ -1796,11 +1796,9 @@ dnl
dnl We want to be able to differentiate between different rev's dnl We want to be able to differentiate between different rev's
dnl dnl
if test -n "$host_os"; then if test -n "$host_os"; then
OS=`echo $host_os | sed 's/[[0-9]].*//'`
OSREV=`echo $host_os | sed 's/^[[^0-9\.]]*\([[0-9\.]]*\).*$/\1/'` OSREV=`echo $host_os | sed 's/^[[^0-9\.]]*\([[0-9\.]]*\).*$/\1/'`
OSMAJOR=`echo $OSREV | sed 's/\..*$//'` OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
else else
OS="unknown"
OSREV=0 OSREV=0
OSMAJOR=0 OSMAJOR=0
fi fi
@ -4059,7 +4057,7 @@ dnl We want to use DT_RUNPATH in preference to DT_RPATH in ELF binaries.
dnl Otherwise, LD_LIBRARY_PATH does not work when running the tests. dnl Otherwise, LD_LIBRARY_PATH does not work when running the tests.
dnl We don't do this on NetBSD where RPATH already supports LD_LIBRARY_PATH. dnl We don't do this on NetBSD where RPATH already supports LD_LIBRARY_PATH.
dnl dnl
case "$OS" in case "$host_os" in
netbsd*) netbsd*)
;; ;;
*) *)