diff options
Diffstat (limited to 'src/logic/tpax_queue_vector.c')
-rw-r--r-- | src/logic/tpax_queue_vector.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/logic/tpax_queue_vector.c b/src/logic/tpax_queue_vector.c index 82930b1..cae4da0 100644 --- a/src/logic/tpax_queue_vector.c +++ b/src/logic/tpax_queue_vector.c @@ -38,11 +38,17 @@ tpax_hidden const char * tpax_queue_item_full_path( ch += sprintf(ch,"%s",pdirent[0]->prefix); for (; pdirent > dirstck; ) { - ch += sprintf(ch,"%s/",pdirent[0]->dirent.d_name); + if (!(pdirent[0]->flags & TPAX_ITEM_SYMLINK)) + ch += sprintf(ch,"%s/",pdirent[0]->dirent.d_name); + pdirent--; } - sprintf(ch,"%s",pdirent[0]->dirent.d_name); + if (pdirent[0]->flags & TPAX_ITEM_SYMLINK) { + *--ch = '\0'; + } else { + sprintf(ch,"%s",pdirent[0]->dirent.d_name); + } return pathbuf; } |