rpm/rpm-5.4.4-debugedit-fix-incorrect-error-messages-regarding_-b-and_-d.patch
2012-02-01 18:08:07 +04:00

20 lines
883 B
Diff

--- rpm-5.4.4/tools/debugedit.c.error_messages 2011-11-28 16:22:43.045944430 +0100
+++ rpm-5.4.4/tools/debugedit.c 2011-11-28 16:22:58.231962263 +0100
@@ -703,7 +703,7 @@ edit_dwarf2_line (DSO *dso, rpmuint32_t
size_t len = (abs_dir_cnt + abs_file_cnt) * (base_len - dest_len);
if (len == 1)
- error (EXIT_FAILURE, 0, "-b arg has to be either the same length as -d arg, or more than 1 char shorter");
+ error (EXIT_FAILURE, 0, "-b arg has to be either the same length as -d arg, or more than 1 char longer");
memset (ptr, 'X', len - 1);
ptr += len - 1;
*ptr++ = '\0';
@@ -1540,7 +1540,7 @@ main (int argc, char *argv[])
}
if (strlen (dest_dir) > strlen (base_dir))
{
- fprintf (stderr, "Only dest dir longer than base dir not supported\n");
+ fprintf (stderr, "Dest dir longer than base dir is not supported\n");
exit (1);
}
}