From owner-freebsd-hackers@freebsd.org Mon Jun 29 23:57:42 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2CE4398F45F for ; Mon, 29 Jun 2015 23:57:42 +0000 (UTC) (envelope-from pkelsey@gmail.com) Received: from mail-yk0-x22c.google.com (mail-yk0-x22c.google.com [IPv6:2607:f8b0:4002:c07::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E1BDD2236; Mon, 29 Jun 2015 23:57:41 +0000 (UTC) (envelope-from pkelsey@gmail.com) Received: by ykdt186 with SMTP id t186so129508773ykd.0; Mon, 29 Jun 2015 16:57:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=iPQdnJ06ldm6FUETQjGaPsLjFNdr2gzgYF+K/N2fRFY=; b=eRiDqJvzKEkTP7vftkG2ZDNBlo4Qv+pmvzYnioqtgsuZir/YgZVDfmYlHqPJBMeL/6 Df/lzDktsuNLkI5trZqx4MNGYgR+zJpHDcgTfpGA8fPZAcO6GJlR7sv+8va6h0IUNS/L P8OScsESqsbDMOKRpfsfB58yx9tjaotkpeUaX7mLiItMdIjsV1oOr6A/A0ncrT69dTD1 li30XyuRlPNOZ+m8foOpg0TddNlx8B/09Ly5Zo/eTc52x9rh/aPT9aEWKsAWdkD8ehDB RePdlYNXfq15lRm6vlcw91f7ogZ/PZVHlOTwOOrWjahKGmtGBIcp13WvNigGTaWXSGKN Kcfg== MIME-Version: 1.0 X-Received: by 10.129.103.84 with SMTP id b81mr22048800ywc.55.1435622261135; Mon, 29 Jun 2015 16:57:41 -0700 (PDT) Sender: pkelsey@gmail.com Received: by 10.13.219.136 with HTTP; Mon, 29 Jun 2015 16:57:41 -0700 (PDT) In-Reply-To: <5591906E.8060904@selasky.org> References: <558F1D88.8010407@ignoranthack.me> <5591906E.8060904@selasky.org> Date: Mon, 29 Jun 2015 19:57:41 -0400 X-Google-Sender-Auth: TRGcQ7b1XLrsATk7Rl0gqFVvy8M Message-ID: Subject: Re: sysctl(3) man page examples From: Patrick Kelsey To: Hans Petter Selasky Cc: Sean Bruno , "freebsd-hackers@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jun 2015 23:57:42 -0000 On Mon, Jun 29, 2015 at 2:37 PM, Hans Petter Selasky wrote: > On 06/28/15 08:26, Patrick Kelsey wrote: > >> s a sysctl entry for it (containing an empty >> string) >> > > Hi, > > FYI: > > Until r267960 zero-length strings were not listed by sysctl, which might > be part of the reason this bug has not been seen before. > > That zero-length string is just a dummy entry to keep the mib name in the sysctl tree - the true value for that key is supplied by sysctl(3) directly, so that key should never validly resolve to a zero-length string. I believe this bug did not show up because there are vanishingly few consumers of the user.cs_path sysctl value. -Patrick