Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgfelkel <60182072+gfelkel@users.noreply.github.com>2020-01-22 18:31:49 +0300
committerGitHub <noreply@github.com>2020-01-22 18:31:49 +0300
commitd3287bd7effe3f7d7648c848eac1ca17a46d63ce (patch)
tree3970172efdd26efbb417c90942d813c0afbd0cf5 /include/tests_filesystems
parenta7b48e40b0ef500b4e0213d2fd23194b1efd3f83 (diff)
FILE-6310 for HP-UX
HP-UX: /usr/sbin/mount reports "/home on /dev/…", so $1 has to be used
Diffstat (limited to 'include/tests_filesystems')
-rw-r--r--include/tests_filesystems1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/tests_filesystems b/include/tests_filesystems
index 798978e7..c709a79a 100644
--- a/include/tests_filesystems
+++ b/include/tests_filesystems
@@ -50,6 +50,7 @@
LogText "Result: directory ${I} exists"
case "${OS}" in
"AIX") FIND=$(${MOUNTBINARY} | ${AWKBINARY} -v MP=${I} '{ if ($2==MP) { print $2 }}') ;;
+ "HP-UX") FIND=$(${MOUNTBINARY} | ${AWKBINARY} -v MP=${I} '{ if ($1==MP) { print $1 }}') ;;
*) FIND=$(${MOUNTBINARY} | ${AWKBINARY} -v MP=${I} '{ if ($3==MP) { print $3 }}') ;;
esac