Browse Source

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

release-1.5.4.branch
Vreixo Formoso 15 years ago
parent
commit
0a340c53d5
  1. 2
      src/fs_local.c
  2. 3
      src/tree.c

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

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

Loading…
Cancel
Save