fixed symlink handling
This commit is contained in:
14
colors.c
14
colors.c
@@ -68,15 +68,15 @@ void colors_init() {
|
||||
} else if (!strcmp(token, "DIR")) {
|
||||
parse_colors(line, &fg, &bg);
|
||||
init_pair(1, fg, bg); /* directory */
|
||||
} else if (!strcmp(token, "EXEC")){
|
||||
parse_colors(line, &fg, &bg);
|
||||
init_pair(2, fg, bg); /* exec */
|
||||
} else if (!strcmp(token, "RESET")){
|
||||
parse_colors(line, &fg, &bg);
|
||||
init_pair(3, fg, bg); /* regular file */
|
||||
} else if (!strcmp(token, "LINK")){
|
||||
parse_colors(line, &fg, &bg);
|
||||
init_pair(4, fg, bg); /* symlink */
|
||||
init_pair(2, fg, bg); /* symlink */
|
||||
} else if (!strcmp(token, "EXEC")){
|
||||
parse_colors(line, &fg, &bg);
|
||||
init_pair(3, fg, bg); /* exec */
|
||||
} else if (!strcmp(token, "RESET")){
|
||||
parse_colors(line, &fg, &bg);
|
||||
init_pair(4, fg, bg); /* regular file */
|
||||
} else if (!strcmp(token, "BLK")){
|
||||
parse_colors(line, &fg, &bg);
|
||||
init_pair(5, fg, bg); /* block device */
|
||||
|
Reference in New Issue
Block a user