]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
Return a non-zero exit code on error.
authorAndreas Dilger <adilger@clusterfs.com>
Wed, 26 Dec 2001 06:10:40 +0000 (23:10 -0700)
committerAndreas Dilger <adilger@clusterfs.com>
Wed, 26 Dec 2001 06:10:40 +0000 (23:10 -0700)
misc/tune2fs.c

index a25d8bf15fb7b1c25d3b93f6ca2471b777caa4cb..8c27a70cc5b30bf204a7507e2b9d6effb2d7999d 100644 (file)
@@ -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);
 }