it is legal to escape a forward slash, it is not required.
{ "log_output": true }
],
"Commands": [
- { "command": "\/usr\/bin\/su -" }
+ { "command": "/usr/bin/su -" }
]
}
]
{ "log_output": false }
],
"Commands": [
- { "command": "\/usr\/bin\/id" }
+ { "command": "/usr/bin/id" }
]
}
]
{ "setenv": true }
],
"Commands": [
- { "command": "\/usr\/bin\/vi" }
+ { "command": "/usr/bin/vi" }
]
}
]
{ "setenv": false }
],
"Commands": [
- { "command": "\/usr\/bin\/echo" }
+ { "command": "/usr/bin/echo" }
]
}
]
{ "send_mail": true }
],
"Commands": [
- { "command": "\/bin\/sh" }
+ { "command": "/bin/sh" }
]
}
]
{ "send_mail": false }
],
"Commands": [
- { "command": "\/usr\/bin\/id" }
+ { "command": "/usr/bin/id" }
]
}
]
{ "sudoedit_follow": true }
],
"Commands": [
- { "command": "sudoedit \/etc\/motd" }
+ { "command": "sudoedit /etc/motd" }
]
}
]
{ "sudoedit_follow": false }
],
"Commands": [
- { "command": "sudoedit \/home\/*\/*" }
+ { "command": "sudoedit /home/*/*" }
]
}
]
"Command_Aliases": {
"LS": [
{
- "command": "\/bin\/ls",
+ "command": "/bin/ls",
"sha224": "d06a2617c98d377c250edd470fd5e576327748d82915d6e33b5f8db1"
}
],
"SH": [
{
- "command": "\/bin\/sh",
- "sha256": "hOtoe\/iK6SlGg7w4BfZBBdSsXjUmTJ5+ts51yjh7vkM="
+ "command": "/bin/sh",
+ "sha256": "hOtoe/iK6SlGg7w4BfZBBdSsXjUmTJ5+ts51yjh7vkM="
}
]
},
{ "cmndalias": "LS" },
{ "cmndalias": "SH" },
{
- "command": "\/bin\/kill",
+ "command": "/bin/kill",
"sha512": "srzYEQ2aqzm+it3f74opTMkIImZRLxBARVpb0g9RSouJYdLt7DTRMEY4Ry9NyaOiDoUIplpNjqYH0JMYPVdFnw"
}
]
"Cmnd_Specs": [
{
"Commands": [
- { "command": "sudoedit \/etc\/motd" }
+ { "command": "sudoedit /etc/motd" }
]
}
]
{
"Command_Aliases": {
"EDIT": [
- { "command": "sudoedit \/etc\/motd" }
+ { "command": "sudoedit /etc/motd" }
]
},
"User_Specs": [
{ "username": "foo" }
],
"UA10": [
- { "nonunixgroup": "C\/non\"UNIX\"0 c" }
+ { "nonunixgroup": "C/non\"UNIX\"0 c" }
],
"UA11": [
- { "nonunixgroup": "C\/non_UNIX_0 c" }
+ { "nonunixgroup": "C/non_UNIX_0 c" }
],
"UA12": [
- { "nonunixgroup": "C\/non\\'UNIX_3 c" }
+ { "nonunixgroup": "C/non\\'UNIX_3 c" }
],
"UA2": [
{ "username": "foo.bar" }
{ "usergroup": "baz.biz" }
],
"UA8": [
- { "nonunixgroup": "C\/non UNIX 0 c" }
+ { "nonunixgroup": "C/non UNIX 0 c" }
],
"UA9": [
- { "nonunixgroup": "C\/non\\'UNIX\\'1 c" }
+ { "nonunixgroup": "C/non\\'UNIX\\'1 c" }
]
},
"Runas_Aliases": {
},
{
"User_List": [
- { "nonunixgroup": "C\/non UNIX 0 c" }
+ { "nonunixgroup": "C/non UNIX 0 c" }
],
"Host_List": [
{ "hostname": "hostc" }
},
{
"User_List": [
- { "nonunixgroup": "C\/non\\'UNIX\\'1 c" }
+ { "nonunixgroup": "C/non\\'UNIX\\'1 c" }
],
"Host_List": [
{ "hostname": "hostd" }
},
{
"User_List": [
- { "nonunixgroup": "C\/non\"UNIX\"0 c" }
+ { "nonunixgroup": "C/non\"UNIX\"0 c" }
],
"Host_List": [
{ "hostname": "hoste" }
},
{
"User_List": [
- { "nonunixgroup": "C\/non_UNIX_0 c" }
+ { "nonunixgroup": "C/non_UNIX_0 c" }
],
"Host_List": [
{ "hostname": "hostf" }
},
{
"User_List": [
- { "nonunixgroup": "C\/non\\'UNIX_3 c" }
+ { "nonunixgroup": "C/non\\'UNIX_3 c" }
],
"Host_List": [
{ "hostname": "hostg" }
switch (ch) {
case '"':
case '\\':
- case '/':
putc('\\', fp);
break;
case '\b':