From 4f1548f32c174d972daa03496417b8da964477d7 Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Sat, 26 Nov 2005 08:51:55 +0000 Subject: [PATCH] umount only if umount exists --- libstream/gzio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libstream/gzio.c b/libstream/gzio.c index a066ecd..1c52f44 100644 --- a/libstream/gzio.c +++ b/libstream/gzio.c @@ -6,7 +6,7 @@ * */ -/* @(#) $Id: gzio.c,v 1.1 2005/11/22 23:14:01 lvivier Exp $ */ +/* @(#) $Id: gzio.c,v 1.2 2005/11/26 08:51:55 lvivier Exp $ */ #include @@ -483,7 +483,7 @@ int ZEXPORT gzclose (file) ret = destroy((gz_stream*)file); fs.close(fs.file); - fs.umount(fs.file); + if (fs.umount) fs.umount(fs.file); return ret; }