diff options
Diffstat (limited to 'src/ckutil.c')
-rw-r--r-- | src/ckutil.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ckutil.c b/src/ckutil.c index fde5e24..2b807de 100644 --- a/src/ckutil.c +++ b/src/ckutil.c @@ -228,3 +228,17 @@ int y_or_n_prompt() { } return 0; } + +void decorate_entry(char *entry, int secret, int primary, const char *path) { + if (primary) { + strcat(entry, " [p]"); + } + + if (secret) { + strcat(entry, " [s]"); + } + /* root */ + if (util_is_link_owned_by_root(path)) { + strcat(entry, " [root]"); + } +} |