From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 24 05:06:38 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ED57316A4E0 for ; Mon, 24 Jul 2006 05:06:38 +0000 (UTC) (envelope-from sthalik@tehran.lain.pl) Received: from mail.in5.pl (rollercoaster.insane.pl [213.251.173.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A3DC43D49 for ; Mon, 24 Jul 2006 05:06:37 +0000 (GMT) (envelope-from sthalik@tehran.lain.pl) Received: from tehran.lain.pl ([85.221.230.102] helo=tehran.local) by mail.in5.pl with esmtpsa (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (envelope-from ) id 1G4seK-000747-Ip for freebsd-hackers@freebsd.org; Mon, 24 Jul 2006 07:06:36 +0200 Received: from sthalik by tehran.local with local (Exim 4.62) (envelope-from ) id 1G4sdt-0004Q2-RZ for freebsd-hackers@freebsd.org; Mon, 24 Jul 2006 07:06:09 +0200 Date: Mon, 24 Jul 2006 07:06:09 +0200 From: Stanislaw Halik To: freebsd-hackers@freebsd.org Message-ID: <20060724050609.GA16975@localhost.localdomain> Mail-Followup-To: freebsd-hackers@freebsd.org References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="u3/rZRmxL6MmkK24" Content-Disposition: inline In-Reply-To: X-PGP-Key: http://tehran.lain.pl/public.key User-Agent: Mutt/1.5.12-2006-07-14 X-User: sthalik Subject: Re: A question about ipcperm() call? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jul 2006 05:06:39 -0000 --u3/rZRmxL6MmkK24 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 24, 2006, ?????? wrote: > 93 if (mode & IPC_M) { > 94 error =3D suser(td); > 95 if (error) > 96 return (error); > why not directly return the error in line 94? Assignment could return boolean false as well. --=20 Ecchi na no wa ikenai to omoimasu. --u3/rZRmxL6MmkK24 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQFExFVBadU+vjT62TERAhKAAJ9f4o86nB04be/lYsnNhcInwEOwrwCghEKC pOMNqu+5OlNzwCzA8qO9efc= =QEQO -----END PGP SIGNATURE----- --u3/rZRmxL6MmkK24--