Fix bug in open() function for local file srcs, to deal with symlinks.
This commit is contained in:
parent
40b27dbacc
commit
0a340c53d5
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user