Date: Wed, 5 Dec 2012 11:30:55 +0000 From: =?utf-8?Q?Gan=20Direct?= <gandirect@gandirect.com> To: =?utf-8?Q??= <freebsd-questions@freebsd.org> Subject: =?utf-8?Q?Save=20=E2=82=AC=202=2C000=20with=20Gan=20Direct=20All=2Din=2DOne=20Insurance?= Message-ID: <953e7a73414b04f0ff6056f55a8af35d56f.20121205113137@mail333.us2.mcsv.net>
index | next in thread | raw e-mail
Save € 2,000 by switching your Motor, Property and Health Insurance to Gan Direct All-in-One ------------------------------------------------------------ http://us4.campaign-archive1.com/?u=953e7a73414b04f0ff6056f55&id=d52abfa867&e=a8af35d56f (http://www.GanDirect.com?utm_source=New+Prospective+Customers&utm_campaign=d52abfa867-Pros_Bundled_offer11_28_2012&utm_medium=email) Save € 2,000 by switching your Motor, Property and Health Insurance to Gan Direct All-in-One We don't believe in empty promises. Gan Direct More for Less. Guaranteed. At Gan Direct, we believe in a world where life is simpler, easier, and more affordable. Now by switching your Motor, Property and Health Insurance to Gan Direct All-in-One you can save € 2,000 per year. The savings example is for the average family, with two cars, two children, in a four bedroom home with Health Insurance based on the most popular plan in Cyprus. And with Gan's Easy Switch service we will take the hassle off you by dealing with all the paperwork. Call us at 800 5 10 15. Gan Direct's All-in-One. Not just savings, but easy savings. Gan Direct | Simpler, Better, Faster The acceptance of your proposal is subject to terms and conditions and we reserve the right to decline ============================================================ Copyright © 2012 Gan Direct Insurance, All rights reserved. Our mailing address is: Gan Direct Insurance, PO Box 51998, 3509 Limassol ** forward to a friend (http://us4.forward-to-friend.com/forward?u=953e7a73414b04f0ff6056f55&id=d52abfa867&e=a8af35d56f) ** unsubscribe from this list (http://gandirect.us4.list-manage.com/unsubscribe?u=953e7a73414b04f0ff6056f55&id=63b7e8c64f&e=a8af35d56f&c=d52abfa867) ** update subscription preferences (http://gandirect.us4.list-manage.com/profile?u=953e7a73414b04f0ff6056f55&id=63b7e8c64f&e=a8af35d56f) From owner-freebsd-questions@FreeBSD.ORG Wed Dec 5 11:50:19 2012 Return-Path: <owner-freebsd-questions@FreeBSD.ORG> Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E20FEBE8 for <questions@freebsd.org>; Wed, 5 Dec 2012 11:50:19 +0000 (UTC) (envelope-from bounce-mc.us4_9350649.409421-questions=freebsd.org@mail338.us2.mcsv.net) Received: from mail338.us2.mcsv.net (mail338.us2.mcsv.net [173.231.184.50]) by mx1.freebsd.org (Postfix) with ESMTP id 5B7A88FC13 for <questions@freebsd.org>; Wed, 5 Dec 2012 11:50:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; s=k1; d=mail338.us2.mcsv.net; h=Subject:From:Reply-To:To:Date:Message-ID:List-Unsubscribe:Sender:Content-Type:MIME-Version; i=gandirect=gandirect.com@mail338.us2.mcsv.net; bh=izeqwqi8/7njb0Jowm/rlQms/XQ=; b=GvzY12P9Erue8fF2kI7/eeZWaa2PQbsGNdebYVmCCrq8pUYGFujj6GBBt2QLSzZpIKu+YcxEgs3/ 4dpPBIewSGSGKmnpfkUappy0HyWJO/IY6HNyszpYXJyvcblsLIXX9+3vR9hx8QF5lvofR74g889u mjnox13epdUfBIWkVyEDomainKey-Signature: a=rsa-sha1; c=nofws; q=dns; s=k1; d=mail338.us2.mcsv.net; b=UBS10qrkFvGQAoPj5zdHRen/OZHDI9eEz4ILJVfTD2oOo5n4/mA6vF0lCVSNdkCf4zZcoIWO3yKb +NbrZ0EYf4hvpTgfYEWKi0N1YEHwybfyoFbee6eMCQvxtcPpHG7KhGhJ5n8+3iyozbRj3PjS9qhV erXTosiBKaibSGmw154=; Received: from (127.0.0.1) by mail338.us2.mcsv.net id hnsqbs14i1st for <questions@freebsd.org>; Wed, 5 Dec 2012 11:34:04 +0000 (envelope-from <bounce-mc.us4_9350649.409421-questions=freebsd.org@mail338.us2.mcsv.net>) Subject: =?utf-8?Q?Save € 2,000 with Gan Direct All-in-One Insurance?From: =?utf-8?Q?Gan Direct?= <gandirect@gandirect.com> To: =?utf-8?Q??= <questions@freebsd.org> Date: Wed, 5 Dec 2012 11:34:04 +0000 Message-ID: <953e7a73414b04f0ff6056f5545a40e088c.20121205113446@mail338.us2.mcsv.net> X-Mailer: MailChimp Mailer - **CIDd52abfa86745a40e088c** X-Campaign: mailchimp953e7a73414b04f0ff6056f55.d52abfa867 X-campaignid: mailchimp953e7a73414b04f0ff6056f55.d52abfa867 X-Report-Abuse: Please report abuse for this campaign here: http://www.mailchimp.com/abuse/abuse.phtml?u•3e7a73414b04f0ff6056f55&idÕ2abfa867&eEa40e088c x-accounttype: pd Sender: "Gan Direct" <gandirect=gandirect.com@mail338.us2.mcsv.net> x-mcda: FALSE MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format="fixed" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: =?utf-8?Q?Gan Direct?= <gandirect@gandirect.com> List-Id: User questions <freebsd-questions.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions> List-Post: <mailto:freebsd-questions@freebsd.org> List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=subscribe> X-List-Received-Date: Wed, 05 Dec 2012 11:50:20 -0000 Save € 2,000 by switching your Motor, Property and Health Insurance to Gan Direct All-in-One ------------------------------------------------------------ http://us4.campaign-archive1.com/?u=953e7a73414b04f0ff6056f55&id=d52abfa867&e=45a40e088c (http://www.GanDirect.com?utm_source=New+Prospective+Customers&utm_campaign=d52abfa867-Pros_Bundled_offer11_28_2012&utm_medium=email) Save € 2,000 by switching your Motor, Property and Health Insurance to Gan Direct All-in-One We don't believe in empty promises. Gan Direct More for Less. Guaranteed. At Gan Direct, we believe in a world where life is simpler, easier, and more affordable. Now by switching your Motor, Property and Health Insurance to Gan Direct All-in-One you can save € 2,000 per year. The savings example is for the average family, with two cars, two children, in a four bedroom home with Health Insurance based on the most popular plan in Cyprus. And with Gan's Easy Switch service we will take the hassle off you by dealing with all the paperwork. Call us at 800 5 10 15. Gan Direct's All-in-One. Not just savings, but easy savings. Gan Direct | Simpler, Better, Faster The acceptance of your proposal is subject to terms and conditions and we reserve the right to decline ============================================================ Copyright © 2012 Gan Direct Insurance, All rights reserved. Our mailing address is: Gan Direct Insurance, PO Box 51998, 3509 Limassol ** forward to a friend (http://us4.forward-to-friend.com/forward?u=953e7a73414b04f0ff6056f55&id=d52abfa867&e=45a40e088c) ** unsubscribe from this list (http://gandirect.us4.list-manage.com/unsubscribe?u=953e7a73414b04f0ff6056f55&id=63b7e8c64f&e=45a40e088c&c=d52abfa867) ** update subscription preferences (http://gandirect.us4.list-manage.com/profile?u=953e7a73414b04f0ff6056f55&id=63b7e8c64f&e=45a40e088c) From owner-freebsd-questions@FreeBSD.ORG Wed Dec 5 17:27:14 2012 Return-Path: <owner-freebsd-questions@FreeBSD.ORG> Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9F9DA61B for <freebsd-questions@freebsd.org>; Wed, 5 Dec 2012 17:27:14 +0000 (UTC) (envelope-from lists.dan@gmail.com) Received: from mail-ia0-f182.google.com (mail-ia0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 5746F8FC17 for <freebsd-questions@freebsd.org>; Wed, 5 Dec 2012 17:27:14 +0000 (UTC) Received: by mail-ia0-f182.google.com with SMTP id x2so4978402iad.13 for <freebsd-questions@freebsd.org>; Wed, 05 Dec 2012 09:27:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s 120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=AOEqnBisZFTfihVKjnNJDIJ5sneTTy85oiKzyImyhNc=; b=kvS/wmd/XWoSlawLyv35FrQD55AZpArJxDu7E5k1SWn7Q4XHmCVXXPbMtEVYzMxakj uyodXooexyRK7POSDAObf6E5xg8QyN8+YvoAqRZSv0K1b4VZGypP6cTYcog7fLyTyCpF hTRo59h92Nl9nW3bGzWjdX4LAzXVa0O6SsyBreekIgXmFrlafei1vbiilGydl3DY/fmG /xUHqDRzAs4tjZuk2Y0AavqdXAwaxaSiMjPyXBXplmfdbuomSg/tqR137+GNLUfvWZjO 51pQiEzh7M3OAVJsgs6bJApsHtWpmJI7MZxLt3BNaGjxkDWAXXwccSKqucpIbiZPOLJN ca6g=MIME-Version: 1.0 Received: by 10.50.46.129 with SMTP id v1mr2932038igm.42.1354728433618; Wed, 05 Dec 2012 09:27:13 -0800 (PST) Received: by 10.64.13.194 with HTTP; Wed, 5 Dec 2012 09:27:13 -0800 (PST) In-Reply-To: <CAPW8bZ3DzxyNy27uYHL78wzgXjACES3K94bOuW0JPXPhjgr=rg@mail.gmail.com> References: <CAPW8bZ3DzxyNy27uYHL78wzgXjACES3K94bOuW0JPXPhjgr=rg@mail.gmail.com> Date: Wed, 5 Dec 2012 11:27:13 -0600 Message-ID: <CAPW8bZ1vVbpX3Tg16LTXBzJGXxXn6A3kF2ZkSJn7rE3nWBQhew@mail.gmail.com> Subject: Re: getpwnam_r returns EINVAL on FreeBSD 8.3 From: Dan Lists <lists.dan@gmail.com> To: freebsd-questions <freebsd-questions@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions <freebsd-questions.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions> List-Post: <mailto:freebsd-questions@freebsd.org> List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=subscribe> X-List-Received-Date: Wed, 05 Dec 2012 17:27:14 -0000 On Mon, Dec 3, 2012 at 5:54 PM, Dan Lists <lists.dan@gmail.com> wrote: > After upgrading a server from FreeBSD 7.3 to FreeBSD 8.3 I noticed > this bug. Since upgrading, getpwnam_r is acting inconsistently. If I > look up a user that does not exist and the name is 16 characters or > less, getpwnam_r returns 0 and the result is NULL. If the name is > more than 16 characters, getpwnam_r returns EINVAL. Everything works > correctly for users that exist. I was incorrect. The behavior of getpwnam_r is the same on 7.3 and 8.3. The software I was testing acted differently on the two versions. > This only happens when the nsswitch.conf passwd: line contains files. > You need to use files if you are using another module such as msql or > ldap. The problem exists without the other modules listed. For > example: > > passwd: files I would like to emphasize that this does NOT happen when passwd: is set to compat. I believe this is a bug. getpwnam_r should have the same return values (or errno for getpwnam) whether nsswitch.conf has compat or files. If there is a really good reason for them to be different, it should be documented. > Below is a simple test program. Set passwd: to files in nsswitch.conf > and run the program. Any idea how to fix this bug with getpwnam_r? > > #include <stdio.h> > #include <sys/types.h> > #include <pwd.h> > > main() > { > lookup("doesnotexistXXXX"); > lookup("doesnotexistXXXXy"); > } > > int lookup( char *name) > { > > struct passwd pwd; > char buffer[1024]; > struct passwd *result; > int err; > > printf("\nLooking up: %s\n", name); > > err = getpwnam_r(name, &pwd, buffer, sizeof(buffer), &result); > > if( err != 0 ){ > printf("Return code: %d\n", err); > }else if( result == 0 ){ > printf("Returned no result!\n"); > }else{ > printf("Returned: %s (%d)\n", result->pw_name, result->pw_uid); > } > }help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?953e7a73414b04f0ff6056f55a8af35d56f.20121205113137>
