summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2008-06-16 12:19:55 +0000
committerroot <root>2008-06-16 12:19:55 +0000
commit7b11b4c521847e600cd1085dbbf1dda0a43b8732 (patch)
tree27e868b6bdd4ce06dad7efa0b1f8afff7e18eb06
parent15fb204816a82f20acadf93fddb055e18c6fcb85 (diff)
fix mknod, reported by Paul Findlay
-rw-r--r--eio.c4
1 files 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 *