From owner-freebsd-doc@FreeBSD.ORG Sat Jan 2 15:10:04 2010 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EB51B1065694 for ; Sat, 2 Jan 2010 15:10:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C9D498FC16 for ; Sat, 2 Jan 2010 15:10:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o02FA4jV088132 for ; Sat, 2 Jan 2010 15:10:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o02FA4H0088131; Sat, 2 Jan 2010 15:10:04 GMT (envelope-from gnats) Resent-Date: Sat, 2 Jan 2010 15:10:04 GMT Resent-Message-Id: <201001021510.o02FA4H0088131@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Yasir Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BEB65106568B for ; Sat, 2 Jan 2010 15:04:14 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id AE7078FC12 for ; Sat, 2 Jan 2010 15:04:14 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o02F4Ewa016710 for ; Sat, 2 Jan 2010 15:04:14 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o02F4EAU016709; Sat, 2 Jan 2010 15:04:14 GMT (envelope-from nobody) Message-Id: <201001021504.o02F4EAU016709@www.freebsd.org> Date: Sat, 2 Jan 2010 15:04:14 GMT From: Yasir To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: docs/142243: Netcat (nc(1)) manual mistake X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jan 2010 15:10:05 -0000 >Number: 142243 >Category: docs >Synopsis: Netcat (nc(1)) manual mistake >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Sat Jan 02 15:10:04 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Yasir >Release: 7.1-RELEASE >Organization: >Environment: FreeBSD conductor.loc 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan 1 14:37:25 UTC 2009 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: man 1 nc states in TALKING TO SERVERS section: [..] For example, to retrieve the home page of a web site: $ echo -n "GET / HTTP/1.0\r\n\r\n" | nc host.example.com 80 [..] But this kind of request often returns either nothing or something irrelevant, maybe due to a strong server implementation (e.g. meets RFCs). >How-To-Repeat: According to man one could do the following: $ echo "GET / HTTP/1.0\r\n\r\n" | nc example.com 80 But nothing is returned upon request. Another attempt which also fails: $ echo "HEAD / HTTP/1.0\r\n\r\n" | nc ya.ru 80 400 Bad Request

400 Bad Request


nginx
>Fix: There should have been used printf(1) instead. Man should be corrected, namely, sed 's/echo -n/printf/' >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-doc@FreeBSD.ORG Sat Jan 2 16:09:38 2010 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A6DAE106568F for ; Sat, 2 Jan 2010 16:09:38 +0000 (UTC) (envelope-from stefan.midjich@gmail.com) Received: from mail-ew0-f226.google.com (mail-ew0-f226.google.com [209.85.219.226]) by mx1.freebsd.org (Postfix) with ESMTP id 3BA378FC14 for ; Sat, 2 Jan 2010 16:09:37 +0000 (UTC) Received: by ewy26 with SMTP id 26so11739901ewy.3 for ; Sat, 02 Jan 2010 08:09:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:reply-to:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=7Aegv3u4SF61b5PW3dokeBkAhZK3eUAcRgeGpXhB7No=; b=GHujRjvb2pGSwsXuUjjUipWUujxp0t+WeZDRmi9bnCeUBOSSezS/63x6d/9gpxz1oi 3nelmcKuL+j4ScZLmVoSlpfIK7wTbKwWw+pgbnTcTQXzCimuDyONQj2JIzJhi0PXiQgs mhsF/3wMfhukhu89UEFNot5cq/hMbNxZ2jDSg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:date:x-google-sender-auth:message-id :subject:from:to:content-type; b=KIf+O3klozKKwMrYFM7qxqKnHOivER63rWL8u6ZnK8C4opnyAn68LgOlHzjFKypWT1 DXHg48o4fGi4gJI4jNCSSagFUk7IyZpp8tLl+LVcxhnPm9PdYwK+/zWw7E9jih1zdKvu veKFELCf215XU/tdsmD1GXXdWRrcK7PdgqCho= MIME-Version: 1.0 Sender: stefan.midjich@gmail.com Received: by 10.216.89.205 with SMTP id c55mr1467994wef.186.1262447160842; Sat, 02 Jan 2010 07:46:00 -0800 (PST) Date: Sat, 2 Jan 2010 16:46:00 +0100 X-Google-Sender-Auth: ead28d0816d10e48 Message-ID: From: Stefan Midjich To: freebsd-doc@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Writing Device Drivers needs updating? X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: swehack@gmail.com List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jan 2010 16:09:38 -0000 Hi I'm trying to find the file of majors, /usr/src/sys/conf/majors, as i was advised to read it from the online handbook. http://www.freebsd.org/doc/en/books/arch-handbook/driverbasics-char.html I cannot find it though, does anyone know if it has been replaced or something? I obviously have the full ssys set for 8.0-RELEASE but i've also tried on an older 7.0 installation and it is not there either. Perhaps this documentation needs updating. Also the manual for mknod(8) mentions this file. My question is where is the new version of the file? --=20 Med v=E4nliga h=E4lsningar / With kind regards Stefan Midjich http://swehack.se/cv https://www.swehack.se/cv From owner-freebsd-doc@FreeBSD.ORG Sat Jan 2 16:50:03 2010 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 70D7710656C4 for ; Sat, 2 Jan 2010 16:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 606B78FC1C for ; Sat, 2 Jan 2010 16:50:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o02Go3LU075092 for ; Sat, 2 Jan 2010 16:50:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o02Go3wq075091; Sat, 2 Jan 2010 16:50:03 GMT (envelope-from gnats) Date: Sat, 2 Jan 2010 16:50:03 GMT Message-Id: <201001021650.o02Go3wq075091@freefall.freebsd.org> To: freebsd-doc@FreeBSD.org From: Yasir Arsanukaev Cc: Subject: Re: docs/142243: Netcat (nc(1)) manual mistake X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Yasir Arsanukaev List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jan 2010 16:50:03 -0000 The following reply was made to PR docs/142243; it has been noted by GNATS. From: Yasir Arsanukaev To: bug-followup@FreeBSD.org Cc: Subject: Re: docs/142243: Netcat (nc(1)) manual mistake Date: Sun, 3 Jan 2010 02:26:45 +1000 --00032555843a449031047c30f459 Content-Type: text/plain; charset=UTF-8 While echo in bash(1), sh(1) and csh(1) don't handle '\n' and '\r' properly, I've discovered echo works correctly in zsh(1). Patch is attached and can be applied this way: $ patch /usr/src/contrib/netcat/nc.1 < nc.1.diff The other way is to mention that example works only in zsh. --00032555843a449031047c30f459 Content-Type: application/octet-stream; name="nc.1.diff" Content-Disposition: attachment; filename="nc.1.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: file0 LS0tIG5jLjEJMjAwOC0xMS0yNSAxMjo1OToyOS4wMDAwMDAwMDAgKzEwMDAKKysrIG5jLjEubmV3 CTIwMTAtMDEtMDMgMDM6MTg6MzMuMDAwMDAwMDAwICsxMDAwCkBAIC0zMzEsNyArMzMxLDcgQEAK IGluIHJlc3BvbnNlIHRvIGNvbW1hbmRzIGlzc3VlZCBieSB0aGUgY2xpZW50LgogRm9yIGV4YW1w bGUsIHRvIHJldHJpZXZlIHRoZSBob21lIHBhZ2Ugb2YgYSB3ZWIgc2l0ZToKIC5CZCAtbGl0ZXJh bCAtb2Zmc2V0IGluZGVudAotJCBlY2hvIC1uICJHRVQgLyBIVFRQLzEuMFxlclxlblxlclxlbiIg fCBuYyBob3N0LmV4YW1wbGUuY29tIDgwCiskIHByaW50ZiAiR0VUIC8gSFRUUC8xLjBcZXJcZW5c ZXJcZW4iIHwgbmMgaG9zdC5leGFtcGxlLmNvbSA4MAogLkVkCiAuUHAKIE5vdGUgdGhhdCB0aGlz IGFsc28gZGlzcGxheXMgdGhlIGhlYWRlcnMgc2VudCBieSB0aGUgd2ViIHNlcnZlci4K --00032555843a449031047c30f459-- From owner-freebsd-doc@FreeBSD.ORG Sat Jan 2 16:58:59 2010 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 48D361065676; Sat, 2 Jan 2010 16:58:59 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mx1.freebsd.org (Postfix) with ESMTP id A47888FC12; Sat, 2 Jan 2010 16:58:58 +0000 (UTC) Received: by bwz5 with SMTP id 5so8834588bwz.3 for ; Sat, 02 Jan 2010 08:58:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=sXOzNZvoCg+cLOBxhhiSf9O+Kdh9p7kPgcLnk4J5qzo=; b=LOJ4KLSduvuuoPyJkVe8/xEWvuz1jJiVA8Aw+TKVcskyk/TGur6Y6/pYuAI22Xi/rz CsonGSAEq+7DfeWtC2anupbG8oJSMZvF3Hqe5DQUVtVLYCM3htvV58Qzl5xTe7C8zH5q 8Gtu3ZtXZcb24RFSo/EcPzYj0CDzDgDJS8fHM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=ODzDN4kQYQ26RgifoI3be07SbMIGzKKuna1pJkJMfo0eWaYxgM4sBz41h3yytM4n6Z /+3E+yjUZISQ8WdEEyKPWN2+xoq4K3/hpj57/W3+Y3M3gsVz4+EuEozqqtnzYognw0xE O1jLdPgRtHBwOoqbxdGrxbMioyb65V9aG5TlM= MIME-Version: 1.0 Received: by 10.204.32.19 with SMTP id a19mr1486782bkd.90.1262451533190; Sat, 02 Jan 2010 08:58:53 -0800 (PST) In-Reply-To: References: Date: Sat, 2 Jan 2010 19:58:53 +0300 Message-ID: From: pluknet To: swehack@gmail.com Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-doc@freebsd.org, Christian Brueffer Subject: Re: Writing Device Drivers needs updating? X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jan 2010 16:58:59 -0000 2010/1/2 Stefan Midjich : > Hi > > I'm trying to find the file of majors, /usr/src/sys/conf/majors, as i was > advised to read it from the online handbook. > > http://www.freebsd.org/doc/en/books/arch-handbook/driverbasics-char.html > > I cannot find it though, does anyone know if it has been replaced or > something? I obviously have the full ssys set for 8.0-RELEASE but i've also > tried on an older 7.0 installation and it is not there either. > > Perhaps this documentation needs updating. No, since the example mentioned in the article describes 4.x era. Though it should be removed entirely as obsolete. > > Also the manual for mknod(8) mentions this file. No longer in HEAD (should be fixed in 8.x past .0 as well, but not yet). -- wbr, pluknet From owner-freebsd-doc@FreeBSD.ORG Sat Jan 2 19:00:08 2010 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 63FF4106566C for ; Sat, 2 Jan 2010 19:00:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5402F8FC1E for ; Sat, 2 Jan 2010 19:00:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o02J08an086195 for ; Sat, 2 Jan 2010 19:00:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o02J08Ug086194; Sat, 2 Jan 2010 19:00:08 GMT (envelope-from gnats) Date: Sat, 2 Jan 2010 19:00:08 GMT Message-Id: <201001021900.o02J08Ug086194@freefall.freebsd.org> To: freebsd-doc@FreeBSD.org From: Doug Barton Cc: Subject: Re: docs/142243: Netcat (nc(1)) manual mistake X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Doug Barton List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jan 2010 19:00:08 -0000 The following reply was made to PR docs/142243; it has been noted by GNATS. From: Doug Barton To: Yasir Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: docs/142243: Netcat (nc(1)) manual mistake Date: Sat, 02 Jan 2010 10:57:44 -0800 Yasir wrote: >> Fix: > There should have been used printf(1) instead. > Man should be corrected, namely, sed 's/echo -n/printf/' printf should always work, yes. In our sh and in bash, 'echo -e' will also work. hth, Doug -- Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/ Computers are useless. They can only give you answers. -- Pablo Picasso