DragonFly BSD
DragonFly users List (threaded) for 2010-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

[no subject]


Date:

gmail.com>
From: Joe Talbott <josepht@cstone.net>
Subject: Re: Printer Daemon (Update)
Date: Wed, 24 Nov 2010 11:04:03 -0500
BestServHost: crater.dragonflybsd.org
List-Post: <mailto:users@crater.dragonflybsd.org>
List-Subscribe: <mailto:users-request@crater.dragonflybsd.org?body=subscribe>
List-Unsubscribe: <mailto:users-request@crater.dragonflybsd.org?body=unsubscribe>
List-Help: <mailto:users-request@crater.dragonflybsd.org?body=help>
List-Owner: <mailto:owner-users@crater.dragonflybsd.org>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="PEIAKu/WMn1b1Hv9"
Content-Disposition: inline
References: <4B19AE84.8000301@sympatico.ca> <200912052355.nB5NtDxD058582@apollo.backplane.com> <4b9bf931$0$55378$415eb37d@crater_reader.dragonflybsd.org> <AANLkTikj9KcswniHSK4Z42wS4XNwnj4AT_cW8opJqe_K@mail.gmail.com> <4CEAEF64.5090000@199technologies.org> <AANLkTinuep+1sR=i29=6EBws-w2OapoB8zmenBd-eOQW@mail.gmail.com> <20101123015641.GA9943@sol.xenno.com> <AANLkTik_tXyYJP0PFSieYKqDsJ8Dd7rrMdc-VJcosSFQ@mail.gmail.com> <4CEC934A.4080804@rpi.edu> <AANLkTinhHJfoFUoJ1s-9Tw11RASv-yyak3nWCnoppAKa@mail.
gmail.com>
In-Reply-To: <AANLkTinhHJfoFUoJ1s-9Tw11RASv-yyak3nWCnoppAKa@mail.gmail.com>
Sender: users-errors@crater.dragonflybsd.org
Errors-To: users-errors@crater.dragonflybsd.org
Lines: 48
NNTP-Posting-Host: 216.240.41.25
X-Trace: 1290615294 crater_reader.dragonflybsd.org 888 216.240.41.25
Xref: crater_reader.dragonflybsd.org dragonfly.users:15153


--PEIAKu/WMn1b1Hv9
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Tue, Nov 23, 2010 at 09:57:06PM -0700, Tim Darby wrote:
> Here's the output:
> ~> ls -ld /var/run
> drwxr-xr-x  1 root  wheel  0 Nov 21 23:14 /var/run
> ~>  ls -ld /var
> drwxr-xr-x  1 root  wheel  0 Aug 21 22:44 /var
> 
> I agree; this is really bizarre-o.
> 
> One other data point, fwiw:  This machine, I'm pretty sure, started out with
> a fresh install of DF 2.6, which was then upgraded via source to 2.8 and
> this is the first time I've used it to print.  If I can find a spare
> machine, I'll try a fresh install.  Would a vkernel make a good test?

Please try the attached patch.  There's a slight possibility of a
panic on boot so make a backup copy of /boot/kernel before
installkernel.

Make sure to remove yourself from wheel if you added yourself and
logout and log back in before testing.

Thanks,
Joe

--PEIAKu/WMn1b1Hv9
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="uipc_userreq.c.patch"

diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c
index 3421e0c..b3c9986 100644
--- a/sys/kern/uipc_usrreq.c
+++ b/sys/kern/uipc_usrreq.c
@@ -868,7 +868,7 @@ unp_connect(struct socket *so, struct sockaddr *nam, struct thread *td)
 		error = ENOTSOCK;
 		goto bad;
 	}
-	error = VOP_ACCESS(vp, VWRITE, p->p_ucred);
+	error = VOP_EACCESS(vp, VWRITE, p->p_ucred);
 	if (error)
 		goto bad;
 	so2 = vp->v_socket;

--PEIAKu/WMn1b1Hv9--



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]