]> granicus.if.org Git - sudo/commitdiff
Properly escape the backslash before a comma in an example so the
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 9 Sep 2015 20:33:01 +0000 (14:33 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 9 Sep 2015 20:33:01 +0000 (14:33 -0600)
example rule is parsable by visudo.

doc/sudoers.cat
doc/sudoers.man.in
doc/sudoers.mdoc.in

index 16aa52c983bc7c3f6a2164dceba0649d0e85bf0d..a3864c131bf4363bbf496f6372947c6884053bf0 100644 (file)
@@ -2184,7 +2184,7 @@ E\bEX\bXA\bAM\bMP\bPL\bLE\bES\bS
      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
index 4e459753154889819fd930aa37a38f3eb45ce35d..c0c137f1d05417f79e8309faa6a34b737c83be3c 100644 (file)
@@ -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
index 9b8886a0c704a8bbad33dbd5b369a9c373e8d558..f315290f61c96a70b64e9b44fcc791e36433e153 100644 (file)
@@ -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