From: Todd C. Miller Date: Fri, 7 Aug 2015 18:00:12 +0000 (-0600) Subject: Escape the colons in [[:alpha:]] as required by sudoers. X-Git-Tag: SUDO_1_8_15^2~92 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dc5ccf47366417110fd06581400719810f9c0999;p=sudo Escape the colons in [[:alpha:]] as required by sudoers. --- diff --git a/doc/sudoers.cat b/doc/sudoers.cat index c47edcc99..1abbd9b5c 100644 --- a/doc/sudoers.cat +++ b/doc/sudoers.cat @@ -693,7 +693,7 @@ SSUUDDOOEERRSS FFIILLEE FFOORRMMAATT fnmatch(3) functions support them. However, because the `:' character has special meaning in _s_u_d_o_e_r_s, it must be escaped. For example: - /bin/ls [[:alpha:]]* + /bin/ls [[\:alpha\:]]* Would match any file name beginning with a letter. @@ -2435,4 +2435,4 @@ DDIISSCCLLAAIIMMEERR file distributed with ssuuddoo or http://www.sudo.ws/license.html for complete details. -Sudo 1.8.15 August 6, 2015 Sudo 1.8.15 +Sudo 1.8.15 August 7, 2015 Sudo 1.8.15 diff --git a/doc/sudoers.man.in b/doc/sudoers.man.in index d4c120b3f..1da7ac75c 100644 --- a/doc/sudoers.man.in +++ b/doc/sudoers.man.in @@ -21,7 +21,7 @@ .\" Agency (DARPA) and Air Force Research Laboratory, Air Force .\" Materiel Command, USAF, under agreement number F39502-99-1-0512. .\" -.TH "SUDOERS" "5" "August 6, 2015" "Sudo @PACKAGE_VERSION@" "File Formats Manual" +.TH "SUDOERS" "5" "August 7, 2015" "Sudo @PACKAGE_VERSION@" "File Formats Manual" .nh .if n .ad l .SH "NAME" @@ -1508,7 +1508,7 @@ For example: .nf .sp .RS 4n -/bin/ls [[:\&alpha:\&]]* +/bin/ls [[\e:\&alpha\e:\&]]* .RE .fi .PP diff --git a/doc/sudoers.mdoc.in b/doc/sudoers.mdoc.in index 54275d735..132959d80 100644 --- a/doc/sudoers.mdoc.in +++ b/doc/sudoers.mdoc.in @@ -19,7 +19,7 @@ .\" Agency (DARPA) and Air Force Research Laboratory, Air Force .\" Materiel Command, USAF, under agreement number F39502-99-1-0512. .\" -.Dd August 6, 2015 +.Dd August 7, 2015 .Dt SUDOERS @mansectform@ .Os Sudo @PACKAGE_VERSION@ .Sh NAME @@ -1408,7 +1408,7 @@ it must be escaped. For example: .Bd -literal -offset 4n -/bin/ls [[:\&alpha:\&]]* +/bin/ls [[\e:\&alpha\e:\&]]* .Ed .Pp Would match any file name beginning with a letter.