From: Andreas Dilger Date: Wed, 26 Dec 2001 06:10:40 +0000 (-0700) Subject: Return a non-zero exit code on error. X-Git-Tag: E2FSPROGS-1_26~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c007bc06d97d4b433e4d645edae994a5ae75fa01;p=thirdparty%2Fe2fsprogs.git Return a non-zero exit code on error. --- diff --git a/misc/tune2fs.c b/misc/tune2fs.c index a25d8bf15..8c27a70cc 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); }