From: Theodore Ts'o Date: Tue, 9 Apr 2002 16:46:19 +0000 (-0400) Subject: main.c (main): If resize_fs returns an error, don't print the X-Git-Tag: E2FSPROGS-1.28-WIP-0626~30 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=1608211222685c65f3989f1f8d32e8f72d711c3d;p=tools%2Fe2fsprogs.git main.c (main): If resize_fs returns an error, don't print the message stating that the filesystem was resized after printing the error. --- diff --git a/resize/ChangeLog b/resize/ChangeLog index 29b4564..e34adca 100644 --- a/resize/ChangeLog +++ b/resize/ChangeLog @@ -1,3 +1,8 @@ +2002-04-09 + + * main.c (main): If resize_fs returns an error, don't print the + message stating that the filesystem was resized. + 2002-03-31 * main.c (main): If we are resizing a plain file which is smaller diff --git a/resize/main.c b/resize/main.c index 238e799..5610da5 100644 --- a/resize/main.c +++ b/resize/main.c @@ -264,6 +264,7 @@ int main (int argc, char ** argv) com_err(program_name, retval, _("while trying to resize %s"), device_name); ext2fs_close (fs); + exit(1); } printf(_("The filesystem on %s is now %d blocks long.\n\n"), device_name, new_size);