statfs will be failed by its brokenness.
SVN-Revision: 2857
t->current_filesystem->name_max = PATH_MAX;
# endif /* NAME_MAX */
#endif /* HAVE_READDIR_R */
+
+ /*
+ * When symlink is broken, we cannot find out what current
+ * filesystem is.
+ */
+ if (tree_current_stat(a->tree) == NULL) {
+ t->current_filesystem->synthetic = -1;/* Not supported */
+ t->current_filesystem->remote = -1;/* Not supported */
+ return (ARCHIVE_OK);
+ }
return (setup_current_filesystem(a));
}
t->current_filesystem_id = fid;
t->current_filesystem = &(t->filesystem_table[fid]);
t->current_filesystem->dev = dev;
+
+ /*
+ * When symlink is broken, we cannot find out what current
+ * filesystem is.
+ */
+ if (tree_current_stat(a->tree) == NULL) {
+ t->current_filesystem->synthetic = -1;/* Not supported */
+ t->current_filesystem->remote = -1;/* Not supported */
+ return (ARCHIVE_OK);
+ }
return (setup_current_filesystem(a));
}