2007-08-01 Roland McGrath <roland@redhat.com>
* util.c (umoven): Don't perror for EIO.
(umovestr): Likewise.
diff --git a/util.c b/util.c
index 5855c10..cfe9755 100644
--- a/util.c
+++ b/util.c
@@ -694,7 +694,8 @@
return 0;
}
/* But if not started, we had a bogus address. */
- perror("ptrace: umoven");
+ if (addr != 0 && errno != EIO)
+ perror("ptrace: umoven");
return -1;
}
started = 1;
@@ -709,7 +710,7 @@
/* Ran into 'end of memory' - stupid "printpath" */
return 0;
}
- if (addr != 0)
+ if (addr != 0 && errno != EIO)
perror("ptrace: umoven");
return -1;
}
@@ -844,7 +845,8 @@
/* Ran into 'end of memory' - stupid "printpath" */
return 0;
}
- perror("umovestr");
+ if (addr != 0 && errno != EIO)
+ perror("umovestr");
return -1;
}
started = 1;
@@ -862,7 +864,8 @@
/* Ran into 'end of memory' - stupid "printpath" */
return 0;
}
- perror("umovestr");
+ if (addr != 0 && errno != EIO)
+ perror("umovestr");
return -1;
}
started = 1;