diff --git a/src/fs_local.c b/src/fs_local.c index 598f5d0..7211422 100644 --- a/src/fs_local.c +++ b/src/fs_local.c @@ -158,7 +158,7 @@ int lfs_open(IsoFileSource *src) } /* is a file or a dir ? */ - err = lfs_lstat(src, &info); + err = lfs_stat(src, &info); if (err < 0) { return err; } diff --git a/src/tree.c b/src/tree.c index f4e2978..09805af 100644 --- a/src/tree.c +++ b/src/tree.c @@ -402,6 +402,9 @@ int iso_add_dir_aux(IsoImage *image, IsoDir *parent, IsoFileSource *dir) result = dir->open(dir); if (result < 0) { + char msg[PATH_MAX]; + sprintf(msg, "Can't open dir %s (%d)\n", dir->get_path(dir), result); + iso_msg_debug(image, msg); return result; }