diff options
Diffstat (limited to 'src/dblayer.c')
-rw-r--r-- | src/dblayer.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/dblayer.c b/src/dblayer.c index 33e1682..f517dbe 100644 --- a/src/dblayer.c +++ b/src/dblayer.c @@ -526,6 +526,10 @@ int get_program_paths(DB *db, cklist *ckl, const char* pName, int bname, int att if (sqlite3_column_int(stmt, 2)) { strcat(entry, " [p]"); } + /* root */ + if (util_is_link_owned_by_root((char *)sqlite3_column_text(stmt, 0))) { + strcat(entry, " [root]"); + } } list_add(ckl, entry); free(tmp); @@ -560,6 +564,10 @@ int list_get_paths(DB *db, cklist *ckl, int attr) { if (sqlite3_column_int(stmt, 2)) { strcat(path, " [p]"); } + /* root */ + if (util_is_link_owned_by_root((char *)sqlite3_column_text(stmt, 0))) { + strcat(path, " [root]"); + } } list_add(ckl, path); } @@ -640,6 +648,10 @@ int list_get_path_program_tree(DB *db, cklist *ckl, int attr) { if (sqlite3_column_int(stmt2, 2)) { strcat(treePath, " [p]"); } + /* root */ + if (util_is_link_owned_by_root((char *)sqlite3_column_text(stmt2, 0))) { + strcat(treePath, " [root]"); + } } list_add(ckl, treePath); } |