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
570 570
			else if (c[j] >= 'A' && c[j] <= 'H') {
571 571
				colors[i].num[j] = c[j] - 'A';
572 572
				colors[i].bold = 1;
573
			} else if (tolower((unsigned char)c[j] == 'x'))
573
			} else if (tolower((unsigned char)c[j]) == 'x')
574 574
				colors[i].num[j] = -1;
575 575
			else {
576 576
				warnx("invalid character '%c' in LSCOLORS"
    (1-1/1)