487 |
lfs->disabled_cache))) |
lfs->disabled_cache))) |
488 |
{ |
{ |
489 |
char tmpbuf[256], *p; |
char tmpbuf[256], *p; |
490 |
snprintf(tmpbuf,sizeof(tmpbuf), "Can't read %s", lfs->dname); |
fl_snprintf(tmpbuf,sizeof(tmpbuf), "Can't read %s", lfs->dname); |
491 |
fl_show_alert("ReadDir", tmpbuf, fl_get_syserror_msg(), 0); |
fl_show_alert("ReadDir", tmpbuf, fl_get_syserror_msg(), 0); |
492 |
M_err("ReadDir", "Can't read %s", lfs->dname); |
M_err("ReadDir", "Can't read %s", lfs->dname); |
493 |
/* backup */ |
/* backup */ |
509 |
{ |
{ |
510 |
if (dl->type == FT_DIR) |
if (dl->type == FT_DIR) |
511 |
{ |
{ |
512 |
snprintf(tt, sizeof(tt), "%c %s", dirmarker, dl->name); |
fl_snprintf(tt, sizeof(tt), "%c %s", dirmarker, dl->name); |
513 |
fl_add_browser_line(br, tt); |
fl_add_browser_line(br, tt); |
514 |
} |
} |
515 |
} |
} |
521 |
{ |
{ |
522 |
if (!listdirfirst) |
if (!listdirfirst) |
523 |
{ |
{ |
524 |
snprintf(tt, sizeof(tt), "%c %s", dirmarker, dl->name); |
fl_snprintf(tt, sizeof(tt), "%c %s", dirmarker, dl->name); |
525 |
fl_add_browser_line(br, tt); |
fl_add_browser_line(br, tt); |
526 |
} |
} |
527 |
} |
} |
528 |
else if (dl->type == FT_FIFO) |
else if (dl->type == FT_FIFO) |
529 |
{ |
{ |
530 |
snprintf(tt, sizeof(tt), "%c %s", fifomarker, dl->name); |
fl_snprintf(tt, sizeof(tt), "%c %s", fifomarker, dl->name); |
531 |
fl_add_browser_line(br, tt); |
fl_add_browser_line(br, tt); |
532 |
} |
} |
533 |
else if (dl->type == FT_SOCK) |
else if (dl->type == FT_SOCK) |
534 |
{ |
{ |
535 |
snprintf(tt, sizeof(tt), "%c %s", sockmarker, dl->name); |
fl_snprintf(tt, sizeof(tt), "%c %s", sockmarker, dl->name); |
536 |
fl_add_browser_line(br, tt); |
fl_add_browser_line(br, tt); |
537 |
} |
} |
538 |
else if (dl->type == FT_BLK) |
else if (dl->type == FT_BLK) |
539 |
{ |
{ |
540 |
snprintf(tt, sizeof(tt), "%c %s", bdevmarker, dl->name); |
fl_snprintf(tt, sizeof(tt), "%c %s", bdevmarker, dl->name); |
541 |
fl_add_browser_line(br, tt); |
fl_add_browser_line(br, tt); |
542 |
} |
} |
543 |
else if (dl->type == FT_CHR) |
else if (dl->type == FT_CHR) |
544 |
{ |
{ |
545 |
snprintf(tt, sizeof(tt), "%c %s", cdevmarker, dl->name); |
fl_snprintf(tt, sizeof(tt), "%c %s", cdevmarker, dl->name); |
546 |
fl_add_browser_line(br, tt); |
fl_add_browser_line(br, tt); |
547 |
} |
} |
548 |
else |
else |
549 |
{ |
{ |
550 |
snprintf(tt, sizeof(tt)," %s", dl->name); |
fl_snprintf(tt, sizeof(tt)," %s", dl->name); |
551 |
fl_add_browser_line(br, tt); |
fl_add_browser_line(br, tt); |
552 |
if (fn && strcmp(dl->name, fn) == 0) |
if (fn && strcmp(dl->name, fn) == 0) |
553 |
{ |
{ |