/[gentoo-x86]/sys-fs/e2fsprogs/files/0001-resize2fs-Fix-error-message-so-the-mountpoint-is-pri.patch
Gentoo

Contents of /sys-fs/e2fsprogs/files/0001-resize2fs-Fix-error-message-so-the-mountpoint-is-pri.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Jul 3 19:35:20 2009 UTC (5 years, 1 month ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Apply resize2fs fix from upstream #276352 by Matthias Schwarzott, fix findfs building #275923 by Bernhard Hartleb, and tweak tex font handling #261411.
(Portage version: 2.2_rc33/cvs/Linux x86_64)

1 https://bugs.gentoo.org/276352
2
3 From 3a4d9869d47c462c84688b0f8b15df5ab6f93381 Mon Sep 17 00:00:00 2001
4 From: Theodore Ts'o <tytso@mit.edu>
5 Date: Thu, 2 Jul 2009 13:54:22 -0400
6 Subject: [PATCH] resize2fs: Fix error message so the mountpoint is printed correctly
7
8 The resize2fs program was freeing the mountpoint information too
9 early, so garbage was getting printed instead of the correct
10 information in an error message.
11
12 Addresses-Debian-Bug: #535452
13
14 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 ---
16 resize/main.c | 5 ++---
17 1 files changed, 2 insertions(+), 3 deletions(-)
18
19 diff --git a/resize/main.c b/resize/main.c
20 index 9b03ba9..2dae161 100644
21 --- a/resize/main.c
22 +++ b/resize/main.c
23 @@ -250,10 +250,8 @@ int main (int argc, char ** argv)
24 device_name);
25 exit(1);
26 }
27 - if (!(mount_flags & EXT2_MF_MOUNTED) || (mtpt[len-1] == 0)) {
28 - free(mtpt);
29 + if (!(mount_flags & EXT2_MF_MOUNTED) || (mtpt[len-1] == 0))
30 break;
31 - }
32 free(mtpt);
33 len = 2 * len;
34 }
35 @@ -453,6 +451,7 @@ int main (int argc, char ** argv)
36 ((flags & RESIZE_PERCENT_COMPLETE) ?
37 resize_progress_func : 0));
38 }
39 + free(mtpt);
40 if (retval) {
41 com_err(program_name, retval, _("while trying to resize %s"),
42 device_name);
43 --
44 1.6.3.3

  ViewVC Help
Powered by ViewVC 1.1.20