Fix bug in open() function for local file srcs, to deal with symlinks.

This commit is contained in:
Vreixo Formoso 2007-12-15 17:12:21 +01:00
parent 40b27dbacc
commit 0a340c53d5
2 changed files with 4 additions and 1 deletions

View File

@ -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;
}

View File

@ -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;
}