Project

General

Profile

Submit #3322 ยป dfly-ls-patch.diff

patch fixing issue - piecuch, 08/08/2022 07:41 AM

View differences:

bin/ls/print.c
else if (c[j] >= 'A' && c[j] <= 'H') {
colors[i].num[j] = c[j] - 'A';
colors[i].bold = 1;
} else if (tolower((unsigned char)c[j] == 'x'))
} else if (tolower((unsigned char)c[j]) == 'x')
colors[i].num[j] = -1;
else {
warnx("invalid character '%c' in LSCOLORS"
    (1-1/1)