Skip to content

Commit

Permalink
Support OpenBSD tar in --install list for issue ice-wm/icewm#179.
Browse files Browse the repository at this point in the history
  • Loading branch information
gijsbers committed Nov 11, 2024
1 parent e751180 commit cab3af4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/theminst.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "base.h"
#include "yapp.h"
#include "ytime.h"
#include "ascii.h"
#include <ftw.h>
#include <errno.h>
#include <unistd.h>
Expand Down Expand Up @@ -166,10 +167,12 @@ static void install_extra(const char* name, bool* result) {
char* a = strchr(line, '/');
if (a) {
char* b = strchr(++a, '/');
if (b && b[1] == '\n') {
char* c = strchr(a, '.');
if (b ? (b[1] == '\n') :
(a[1] && (c == nullptr || ASCII::isDigit(c[1])))) {
if (++k > 1)
putchar(' ');
fwrite(a, 1, b - a, stdout);
fwrite(a, 1, b ? (b - a) : strlen(a), stdout);
}
}
}
Expand Down

0 comments on commit cab3af4

Please sign in to comment.