From c007bc06d97d4b433e4d645edae994a5ae75fa01 Mon Sep 17 00:00:00 2001 From: Andreas Dilger Date: Tue, 25 Dec 2001 23:10:40 -0700 Subject: Return a non-zero exit code on error. --- misc/tune2fs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'misc/tune2fs.c') diff --git a/misc/tune2fs.c b/misc/tune2fs.c index a25d8bf1..8c27a70c 100644 --- a/misc/tune2fs.c +++ b/misc/tune2fs.c @@ -813,6 +813,5 @@ int main (int argc, char ** argv) if (l_flag) list_super (sb); - ext2fs_close (fs); - exit (0); + return (ext2fs_close (fs) ? 1 : 0); } -- cgit v1.2.3