Skip to content
This repository has been archived by the owner on Apr 28, 2018. It is now read-only.

Commit

Permalink
Fix regex for false positive additions to suders [Tracker #13591]
Browse files Browse the repository at this point in the history
  • Loading branch information
bchambers committed Mar 8, 2017
1 parent 839d099 commit 21c7016
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addsudo
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ if ! grep 'webconfig ALL' /etc/sudoers > /dev/null; then
fi

LINE=`grep "^Cmnd_Alias CC" /etc/sudoers 2>/dev/null`
CHECK=`echo $LINE, | grep $1,`
CHECK=`echo $LINE, | grep -E "\s+$1\s*,|,$1\s*,"`
if [ -z "$CHECK" ]; then
/usr/bin/logger -p local6.notice -t installer "$LOGTAG - adding sudoers entry $1"
ESCAPE=`echo $1 | sed 's/\//\\\\\//g'`
Expand Down
2 changes: 1 addition & 1 deletion clearos-base.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: clearos-base
Version: 7.0.0
Version: 7.0.1
Release: 1%{dist}
Summary: Initializes the system environment
License: GPLv3 or later
Expand Down

0 comments on commit 21c7016

Please sign in to comment.