From 2bcd3cfb3d0611db3453fb5729090ce757d7fdd6 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Mon, 10 Apr 2006 22:54:56 -0700 Subject: [PATCH] --- yaml --- r: 25555 b: refs/heads/master c: a87046d822f2d982d25b24c4a644d34f22d4888a h: refs/heads/master i: 25553: 048704e6be19684c63b675274b94ed36b02bd2a2 25551: 3bc94be9b071bc4c075ceb87f42e9d1412b87272 v: v3 --- [refs] | 2 +- trunk/fs/fuse/dev.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index d12131c7e3f8..903e7bc694b6 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d713311464bcca73c990d1a1b5c9467eae87f5b4 +refs/heads/master: a87046d822f2d982d25b24c4a644d34f22d4888a diff --git a/trunk/fs/fuse/dev.c b/trunk/fs/fuse/dev.c index 63d2cf43b5e3..6b8843d4ad8c 100644 --- a/trunk/fs/fuse/dev.c +++ b/trunk/fs/fuse/dev.c @@ -739,7 +739,7 @@ static ssize_t fuse_dev_writev(struct file *file, const struct iovec *iov, struct fuse_copy_state cs; struct fuse_conn *fc = fuse_get_conn(file); if (!fc) - return -ENODEV; + return -EPERM; fuse_copy_init(&cs, fc, 0, NULL, iov, nr_segs); if (nbytes < sizeof(struct fuse_out_header)) @@ -930,7 +930,7 @@ static int fuse_dev_fasync(int fd, struct file *file, int on) { struct fuse_conn *fc = fuse_get_conn(file); if (!fc) - return -ENODEV; + return -EPERM; /* No locking - fasync_helper does its own locking */ return fasync_helper(fd, file, on, &fc->fasync);