From 312da833ffe431e66b4b1644328726a5ecda8e52 Mon Sep 17 00:00:00 2001 From: "Andrew V. Samoilov" Date: Fri, 17 Sep 2004 11:44:43 +0000 Subject: [PATCH] * extfs.c (extfs_open_archive): Fixes bug in extfs, which showed 'Inconsistent extfs archive' on small archives and diffs. QNX 6.x (QNX Neutrino) specific --- vfs/ChangeLog | 10 +++++++++- vfs/extfs.c | 5 ++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/vfs/ChangeLog b/vfs/ChangeLog index 2fd1d73bd..fddfb3cf0 100644 --- a/vfs/ChangeLog +++ b/vfs/ChangeLog @@ -1,3 +1,11 @@ +2004-09-17 Pavel S. Shirshov + + * extfs.c (extfs_open_archive): Fixes bug in extfs, which showed + 'Inconsistent extfs archive' on small archives and diffs. + QNX 6.x (QNX Neutrino) specific + + Based on patch from Dmitry Alexeyev + 2004-09-06 Jakub Jelinek * fish.c (fish_file_store): Call got_interrupt() instead of testing @@ -13,7 +21,7 @@ to system/open that spawn a shell. * direntry.c (vfs_s_find_entry_tree): Make "size" size_t. -Based on patches from Jakub Jelinek + Based on patches from Jakub Jelinek 2004-09-02 Andrew V. Samoilov diff --git a/vfs/extfs.c b/vfs/extfs.c index 94fc451f9..754629819 100644 --- a/vfs/extfs.c +++ b/vfs/extfs.c @@ -254,7 +254,10 @@ extfs_open_archive (int fstype, const char *name, struct archive **pparc) g_free(local_name); } return NULL; - } + } +#ifdef ___QNXNTO__ + setvbuf (result, NULL, _IONBF, 0); +#endif current_archive = g_new (struct archive, 1); current_archive->fstype = fstype;