From: Nguyễn Thái Ngọc Duy Date: Thu, 20 Mar 2014 10:15:45 GMT Subject: [PATCH 2/8] ls_colors.c: a bit of document on print_color_indicator input Message-ID: <1395310551-23201-3-git-send-email-pclouds@gmail.com> In-Reply-To: <1395310551-23201-1-git-send-email-pclouds@gmail.com> Signed-off-by: Nguyễn Thái Ngọc Duy --- ls_colors.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ls_colors.c b/ls_colors.c index 6385446..d492ab3 100644 --- a/ls_colors.c +++ b/ls_colors.c @@ -401,6 +401,11 @@ static void put_indicator(const struct bin_str *ind) putchar(*(p++)); } +/* + * mode is only used if stat_ok is true, else filetype is used. if + * linkok is -1, shows broken link. If linkok is zero and mode says + * it's a link, then show orphan link. + */ void print_color_indicator(const char *name, mode_t mode, int linkok, int stat_ok, enum filetype filetype) { -- 1.9.0.40.gaa8c3ea