Mark Wielaard 03607f
diff --git a/tools/debugedit.c b/tools/debugedit.c
Mark Wielaard 03607f
index 4798c63..87a423f 100644
Mark Wielaard 03607f
--- a/tools/debugedit.c
Mark Wielaard 03607f
+++ b/tools/debugedit.c
Mark Wielaard 03607f
@@ -1185,7 +1185,7 @@ edit_dwarf2_line (DSO *dso)
Mark Wielaard 03607f
 	    {
Mark Wielaard 03607f
 	      const char *file = (const char *) optr;
Mark Wielaard 03607f
 	      const char *file_path = NULL;
Mark Wielaard 03607f
-	      if (t->replace_dirs)
Mark Wielaard 03607f
+	      if (t->replace_files)
Mark Wielaard 03607f
 		{
Mark Wielaard 03607f
 		  file_path = skip_dir_prefix (file, base_dir);
Mark Wielaard 03607f
 		  if (file_path != NULL)