[Bug 350640] Re: unzip shell call
Brian Murray
brian at ubuntu.com
Fri Feb 12 00:10:23 UTC 2010
This seems to have been solved a different way but fixed nonetheless in
Lucid.
char *
path_for_shell (char *dest, const char *str)
{
/* backslash shell special charatcers */
char ch, *p = dest;
size_t len = strlen(str);
int i;
for (i = 0; i < len; i++)
{
ch = str[i];
switch (ch)
{
/* ASCII table order */
case '!':
case '"':
case '#':
case '$':
case '&':
case 0x27: /* single quote */
case '(':
case ')':
case '*':
case '+':
case 0x2C:
case ':':
case ';':
case '<':
case '>':
case '?':
case '[':
case '\\':
case ']':
case '^':
case '`':
case '{':
case '|':
case '}':
/* backslash special characters */
*p++ = '\\';
*p++ = ch;
break;
default:
*p++ = ch;
}
}
/* terminate string */
*p = '\0';
return dest;
}
** Changed in: fcrackzip (Debian)
Status: New => Won't Fix
** Changed in: fcrackzip (Ubuntu)
Status: New => Fix Released
--
unzip shell call
https://bugs.launchpad.net/bugs/350640
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list