From 8190db6a86a37aec86c81626ab1b083c96aff891 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 17 Dec 2006 23:56:51 +0000 Subject: propagate from branch 'com.redhat.elfutils' (head b4944cf70801d9dac056f4f80ef1334e5acb8bdc) to branch 'com.redhat.elfutils.roland.pending' (head e7e402c668fb0670fc5f6b6a522853ae88f32f11) --- src/strip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/strip.c') diff --git a/src/strip.c b/src/strip.c index fc6ddf50..4c6b7bfb 100644 --- a/src/strip.c +++ b/src/strip.c @@ -344,9 +344,9 @@ process_file (const char *fname) case ELF_K_AR: /* It is not possible to strip the content of an archive direct the output to a specific file. */ - if (unlikely (output_fname != NULL)) + if (unlikely (output_fname != NULL || debug_fname != NULL)) { - error (0, 0, gettext ("%s: cannot use -o when stripping archive"), + error (0, 0, gettext ("%s: cannot use -o or -f when stripping archive"), fname); result = 1; } -- cgit v1.2.3