From: Todd C. Miller Date: Wed, 9 Sep 2015 20:33:01 +0000 (-0600) Subject: Properly escape the backslash before a comma in an example so the X-Git-Tag: SUDO_1_8_15^2~58 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c45559e6c8467d5caf781b1c2cb420e0a4e6c979;p=sudo Properly escape the backslash before a comma in an example so the example rule is parsable by visudo. --- diff --git a/doc/sudoers.cat b/doc/sudoers.cat index 16aa52c98..a3864c131 100644 --- a/doc/sudoers.cat +++ b/doc/sudoers.cat @@ -2184,7 +2184,7 @@ EEXXAAMMPPLLEESS simply su(1) to www. ALL CDROM = NOPASSWD: /sbin/umount /CDROM,\ - /sbin/mount -o nosuid,nodev /dev/cd0a /CDROM + /sbin/mount -o nosuid\,nodev /dev/cd0a /CDROM Any user may mount or unmount a CD-ROM on the machines in the CDROM Host_Alias (orion, perseus, hercules) without entering a password. This diff --git a/doc/sudoers.man.in b/doc/sudoers.man.in index 4e4597531..c0c137f1d 100644 --- a/doc/sudoers.man.in +++ b/doc/sudoers.man.in @@ -4490,7 +4490,7 @@ to www. .sp .RS 0n ALL CDROM = NOPASSWD: /sbin/umount /CDROM,\e - /sbin/mount -o nosuid\,nodev /dev/cd0a /CDROM + /sbin/mount -o nosuid\e,nodev /dev/cd0a /CDROM .RE .fi .PP diff --git a/doc/sudoers.mdoc.in b/doc/sudoers.mdoc.in index 9b8886a0c..f315290f6 100644 --- a/doc/sudoers.mdoc.in +++ b/doc/sudoers.mdoc.in @@ -4140,7 +4140,7 @@ web pages) or simply to www. .Bd -literal ALL CDROM = NOPASSWD: /sbin/umount /CDROM,\e - /sbin/mount -o nosuid\,nodev /dev/cd0a /CDROM + /sbin/mount -o nosuid\e,nodev /dev/cd0a /CDROM .Ed .Pp Any user may mount or unmount a CD-ROM on the machines in the CDROM