Fixed version of patch in the attaechment. Please, comment.
signature.asc
Description: Digital signature
On [Fri, 23.02.2007 16:58], Thiemo Seufer wrote:
> Kirill A. Shutemov wrote:
> > Fixed version of the patch in the attacment. Please, comment.
> [snip]
> > /* Look for path in emulation dir, otherwise return name. */
> > const char *path(const char *name)
> > {
> > +char *newname = (char *)
Kirill A. Shutemov wrote:
> Fixed version of the patch in the attacment. Please, comment.
[snip]
> /* Look for path in emulation dir, otherwise return name. */
> const char *path(const char *name)
> {
> +char *newname = (char *) alloca(strlen(pref)+strlen(name)+1);
> +struct stat buf;
>
Fixed version of the patch in the attacment. Please, comment.
--- qemu-0.8.2/linux-user/path.c.orig 2006-12-21 17:16:03 +0200
+++ qemu-0.8.2/linux-user/path.c2006-12-21 17:14:08 +0200
@@ -1,147 +1,37 @@
/* Code to mangle pathnames into those matching a given prefix.
eg. open("/lib/fo