[PC-BSD Commits] r19421 - pcbsd/current/src-sh/pc-adctl/scripts
svn at pcbsd.org
svn at pcbsd.org
Wed Sep 19 20:23:01 PDT 2012
Author: johnh
Date: 2012-09-20 03:23:01 +0000 (Thu, 20 Sep 2012)
New Revision: 19421
Modified:
pcbsd/current/src-sh/pc-adctl/scripts/pc-pam
Log:
Still trying to please pam, she's picky.
Modified: pcbsd/current/src-sh/pc-adctl/scripts/pc-pam
===================================================================
--- pcbsd/current/src-sh/pc-adctl/scripts/pc-pam 2012-09-20 03:01:17 UTC (rev 19420)
+++ pcbsd/current/src-sh/pc-adctl/scripts/pc-pam 2012-09-20 03:23:01 UTC (rev 19421)
@@ -146,12 +146,13 @@
local class="${2}"
local index
- index="$(egrep "^${class}" "${file}"|awk '{ printf("%d %s\n", n++, $0); }'|egrep required|awk '{ print $1 }'|head -1)"
+ index="$(egrep "^${class}" "${file}"|awk '{ printf("%d %s\n", n++, $0); }'|egrep sufficient|awk '{ print $1 }'|tail -1)"
if [ -z "${index}" ]
then
index=0
fi
+ index=$(( index += 1))
echo "${index}"
}
More information about the Commits
mailing list