From 7b11b4c521847e600cd1085dbbf1dda0a43b8732 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 16 Jun 2008 12:19:55 +0000 Subject: fix mknod, reported by Paul Findlay --- eio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eio.c b/eio.c index 765d6d3..501ee7d 100644 --- a/eio.c +++ b/eio.c @@ -1113,7 +1113,7 @@ static void eio_execute (etp_worker *self, eio_req *req) case EIO_RENAME: req->result = rename (req->ptr1, req->ptr2); break; case EIO_LINK: req->result = link (req->ptr1, req->ptr2); break; case EIO_SYMLINK: req->result = symlink (req->ptr1, req->ptr2); break; - case EIO_MKNOD: req->result = mknod (req->ptr1, (mode_t)req->int2, (dev_t)req->offs); break; + case EIO_MKNOD: req->result = mknod (req->ptr1, (mode_t)req->int2, (dev_t)req->int3); break; case EIO_READLINK: ALLOC (NAME_MAX); req->result = readlink (req->ptr1, req->ptr2, NAME_MAX); break; @@ -1330,7 +1330,7 @@ eio_req *eio_readdir (const char *path, int pri, eio_cb cb, void *data) eio_req *eio_mknod (const char *path, mode_t mode, dev_t dev, int pri, eio_cb cb, void *data) { - REQ (EIO_MKNOD); PATH; req->int2 = (long)mode; req->int2 = (long)dev; SEND; + REQ (EIO_MKNOD); PATH; req->int2 = (long)mode; req->int3 = (long)dev; SEND; } static eio_req * -- cgit v1.2.3