diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2018-12-17 22:05:49 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2018-12-17 22:05:49 -0500 |
commit | 18fc03882d49ff46b41a53afc0d6232e1dfbbb35 (patch) | |
tree | dec8b26d1801c4d170cfb148c3758e95dfd4e1c9 /color.c | |
parent | 50b3caa2625b4377b03fe8ca6967f769cdd6ee95 (diff) | |
download | bfs-18fc03882d49ff46b41a53afc0d6232e1dfbbb35.tar.xz |
color: Support coloring files with capabilities
Diffstat (limited to 'color.c')
-rw-r--r-- | color.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -327,6 +327,8 @@ static const char *file_color(const struct colors *colors, const char *filename, color = colors->setuid; } else if (sb->mode & S_ISGID) { color = colors->setgid; + } else if (bfs_check_capabilities(ftwbuf)) { + color = colors->capable; } else if (sb->mode & 0111) { color = colors->exec; } |