| |
* Compare suffix with .txz or .tbz
|
| |
*/
|
| |
dot_pos ++;
|
| - |
if (strcmp(dot_pos, "tzst") == 0 ||
|
| - |
strcmp(dot_pos, "txz") == 0 ||
|
| - |
strcmp(dot_pos, "tbz") == 0 ||
|
| - |
strcmp(dot_pos, "tgz") == 0 ||
|
| - |
strcmp(dot_pos, "tar") == 0) {
|
| + |
if (strcmp(dot_pos, "bsd") == 0 ||
|
| + |
strcmp(dot_pos, "tzst") == 0 ||
|
| + |
strcmp(dot_pos, "txz") == 0 ||
|
| + |
strcmp(dot_pos, "tbz") == 0 ||
|
| + |
strcmp(dot_pos, "tgz") == 0 ||
|
| + |
strcmp(dot_pos, "tar") == 0) {
|
| |
if ((pkg_path = realpath(pattern, NULL)) != NULL) {
|
| |
/* Dot pos is one character after the dot */
|
| |
int len = dot_pos - pattern;
|