When spliting EDITOR check for escaped quote characters.
Also add check_editor to sudoers "make check".
This commit is contained in:
@@ -45,6 +45,15 @@ struct test_data {
|
||||
5,
|
||||
{ "sh", "-c", "vi $1", "--", "/etc/motd", NULL }
|
||||
},
|
||||
{
|
||||
/* Try connecting to the emacs server, falling back on plain emacs. */
|
||||
"VISUAL=sh -c \"emacsclient -a emacs -n \\\"\\$@\\\" || emacs \\\"\\$@\\\"\"",
|
||||
1,
|
||||
{ "/etc/motd", NULL },
|
||||
"/usr/bin/sh",
|
||||
5,
|
||||
{ "sh", "-c", "emacsclient -a emacs -n \"$@\" || emacs \"$@\"", "--", "/etc/motd", NULL }
|
||||
},
|
||||
{
|
||||
/* GitHub issue #99 */
|
||||
"EDITOR=/usr/bin/vi\\",
|
||||
|
Reference in New Issue
Block a user