From owner-freebsd-standards@FreeBSD.ORG Sun Sep 20 21:50:02 2009 Return-Path: Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E68E2106566C for ; Sun, 20 Sep 2009 21:50:02 +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 D5A5B8FC12 for ; Sun, 20 Sep 2009 21:50:02 +0000 (UTC) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n8KLo2GR093031 for ; Sun, 20 Sep 2009 21:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n8KLo2C6093030; Sun, 20 Sep 2009 21:50:02 GMT (envelope-from gnats) Date: Sun, 20 Sep 2009 21:50:02 GMT Message-Id: <200909202150.n8KLo2C6093030@freefall.freebsd.org> To: freebsd-standards@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: bin/25542: commit references a PR X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Sep 2009 21:50:03 -0000 The following reply was made to PR bin/25542; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: bin/25542: commit references a PR Date: Sun, 20 Sep 2009 21:42:52 +0000 (UTC) Author: jilles Date: Sun Sep 20 21:42:38 2009 New Revision: 197371 URL: http://svn.freebsd.org/changeset/base/197371 Log: Mention that NUL characters are not allowed in sh(1) input. I do not consider this a bug because POSIX permits it and argument strings and environment variables cannot contain '\0' anyway. PR: bin/25542 MFC after: 2 weeks Modified: head/bin/sh/sh.1 Modified: head/bin/sh/sh.1 ============================================================================== --- head/bin/sh/sh.1 Sun Sep 20 19:32:10 2009 (r197370) +++ head/bin/sh/sh.1 Sun Sep 20 21:42:38 2009 (r197371) @@ -375,6 +375,10 @@ introduces a comment if used at the begi The word starting with .Ql # and the rest of the line are ignored. +.Pp +.Tn ASCII +.Dv NUL +characters (character code 0) are not allowed in shell input. .Ss Quoting Quoting is used to remove the special meaning of certain characters or words to the shell, such as operators, whitespace, keywords, _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org" From owner-freebsd-standards@FreeBSD.ORG Mon Sep 21 11:07:06 2009 Return-Path: Delivered-To: freebsd-standards@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 41C831065697 for ; Mon, 21 Sep 2009 11:07:06 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id DFA5B8FC2C for ; Mon, 21 Sep 2009 11:07:05 +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 n8LB75R5030439 for ; Mon, 21 Sep 2009 11:07:05 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n8LB75Lf030435 for freebsd-standards@FreeBSD.org; Mon, 21 Sep 2009 11:07:05 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 21 Sep 2009 11:07:05 GMT Message-Id: <200909211107.n8LB75Lf030435@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-standards@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-standards@FreeBSD.org X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Sep 2009 11:07:06 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o stand/137173 standards `uname -n` incorrect behavior o stand/135307 standards Boot Loader problem on Acer Aspire 5735 o stand/130067 standards Wrong numeric limits in system headers? o stand/129524 standards FreeBSD 7.0 isnt detecting my hardrives with raid5 o stand/129196 standards Inconsistent errno in strtol() o stand/128546 standards ls -p does not follow symlinks o bin/125855 standards sh(1) allows for multiline, non-escaped control struct o stand/124860 standards flockfile(3) doesn't work when the memory has been exh o stand/123688 standards POSIX standard changes in unistd.h and grp.h o stand/121921 standards [patch] Add leap second support to at(1), atrun(8) o stand/121568 standards [patch] ln(1): wrong "ln -s" behaviour o stand/120947 standards xsm ignores system.xsm and .xsmstartup o stand/116826 standards [patch] sh support for POSIX character classes o stand/116477 standards rm(1): rm behaves unexpectedly when using -r and relat o bin/116413 standards incorrect getconf(1) handling of unsigned constants gi o stand/116081 standards make does not work with the directive sinclude p stand/107561 standards [libc] [patch] [request] Missing SUS function tcgetsid o stand/104743 standards [headers] [patch] Wrong values for _POSIX_ minimal lim o stand/100017 standards [Patch] Add fuser(1) functionality to fstat(1) o stand/96236 standards [patch] [posix] sed(1) incorrectly describes a functio o stand/96016 standards [headers] clock_getres et al should be in o stand/94729 standards [libc] fcntl() throws undocumented ENOTTY o kern/93705 standards [headers] [patch] ENODATA and EGREGIOUS (for glibc com o stand/92362 standards [headers] [patch] Missing SIGPOLL in kernel headers a stand/86484 standards [patch] mkfifo(1) uses wrong permissions o stand/83845 standards [libm] [patch] add log2() and log2f() support for libm o stand/82654 standards C99 long double math functions are missing o stand/81287 standards [patch] fingerd(8) might send a line not ending in CRL a stand/80293 standards sysconf() does not support well-defined unistd values o stand/79056 standards [feature request] [atch] regex(3) regression tests o stand/70813 standards [patch] ls(1) not Posix compliant o stand/66357 standards make POSIX conformance problem ('sh -e' & '+' command- s kern/64875 standards [libc] [patch] [request] add a system call: fdatasync( s stand/62858 standards malloc(0) not C99 compliant o stand/56476 standards cd9660 unicode support simple hack o stand/54839 standards [pcvt] pcvt deficits o stand/54833 standards [pcvt] more pcvt deficits o stand/54410 standards one-true-awk not POSIX compliant (no extended REs) o stand/46119 standards Priority problems for SCHED_OTHER using pthreads o stand/44425 standards getcwd() succeeds even if current dir has perm 000. p stand/41576 standards POSIX compliance of ln(1) o stand/39256 standards snprintf/vsnprintf aren't POSIX-conformant for strings s stand/36076 standards Implementation of POSIX fuser command o kern/27835 standards [libc] execve() doesn't conform to execve(2) spec in s a docs/26003 standards getgroups(2) lists NGROUPS_MAX but not syslimits.h o bin/25542 standards sh(1) null char in quoted string s stand/24590 standards timezone function not compatible witn Single Unix Spec o bin/24390 standards ln(1) Replacing old dir-symlinks when using /bin/ln o stand/21519 standards sys/dir.h should be deprecated some more s bin/14925 standards getsubopt isn't poisonous enough 50 problems total. From owner-freebsd-standards@FreeBSD.ORG Mon Sep 21 22:35:00 2009 Return-Path: Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 870DA106566C; Mon, 21 Sep 2009 22:35:00 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 53A3C8FC1A; Mon, 21 Sep 2009 22:35:00 +0000 (UTC) Received: from freefall.freebsd.org (jilles@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n8LMZ09k040886; Mon, 21 Sep 2009 22:35:00 GMT (envelope-from jilles@freefall.freebsd.org) Received: (from jilles@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n8LMZ09k040882; Mon, 21 Sep 2009 22:35:00 GMT (envelope-from jilles) Date: Mon, 21 Sep 2009 22:35:00 GMT Message-Id: <200909212235.n8LMZ09k040882@freefall.freebsd.org> To: akosela@andykosela.com, jilles@FreeBSD.org, freebsd-standards@FreeBSD.org From: jilles@FreeBSD.org Cc: Subject: Re: standards/137173: `uname -n` incorrect behavior X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Sep 2009 22:35:00 -0000 Synopsis: `uname -n` incorrect behavior State-Changed-From-To: open->closed State-Changed-By: jilles State-Changed-When: Mon Sep 21 22:34:59 UTC 2009 State-Changed-Why: Submitter confirms this can be closed. No suitable change has been proposed. http://www.freebsd.org/cgi/query-pr.cgi?pr=137173 From owner-freebsd-standards@FreeBSD.ORG Tue Sep 22 17:05:46 2009 Return-Path: Delivered-To: freebsd-standards@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 211DF106568B; Tue, 22 Sep 2009 17:05:46 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 76B2E8FC12; Tue, 22 Sep 2009 17:05:45 +0000 (UTC) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id n8MH5NcZ064550; Tue, 22 Sep 2009 19:05:39 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id n8MH5NEh064549; Tue, 22 Sep 2009 19:05:23 +0200 (CEST) (envelope-from olli) Date: Tue, 22 Sep 2009 19:05:23 +0200 (CEST) Message-Id: <200909221705.n8MH5NEh064549@lurza.secnetix.de> From: Oliver Fromme To: freebsd-standards@FreeBSD.ORG, bug-followup@FreeBSD.ORG, akosela@andykosela.com, jilles@FreeBSD.ORG In-Reply-To: <200909212235.n8LMZ09k040882@freefall.freebsd.org> X-Newsgroups: list.freebsd-standards User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Tue, 22 Sep 2009 19:05:39 +0200 (CEST) Cc: Subject: Re: standards/137173: `uname -n` incorrect behavior X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Sep 2009 17:05:46 -0000 Just for the record: The claim that Solaris doesn't print the FQDN is incorrect. Solaris prints whatever the admin has configured in /etc/nodename. If the admin has configured the FQDN, "uname -n" will print the FQDN. AFAIK it is the same for HP-UX. So, FreeBSD really behaves the same as Solaris and HP-UX: If you configure the hostname to be the FQDN, "uname -n" will print it, just like the "hostname" command. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "Unix gives you just enough rope to hang yourself -- and then a couple of more feet, just to be sure." -- Eric Allman From owner-freebsd-standards@FreeBSD.ORG Tue Sep 22 17:10:05 2009 Return-Path: Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C6851065676 for ; Tue, 22 Sep 2009 17:10:05 +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 1B48E8FC13 for ; Tue, 22 Sep 2009 17:10:05 +0000 (UTC) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n8MHA4E7096699 for ; Tue, 22 Sep 2009 17: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 n8MHA480096696; Tue, 22 Sep 2009 17:10:04 GMT (envelope-from gnats) Date: Tue, 22 Sep 2009 17:10:04 GMT Message-Id: <200909221710.n8MHA480096696@freefall.freebsd.org> To: freebsd-standards@FreeBSD.org From: Oliver Fromme Cc: Subject: Re: standards/137173: `uname -n` incorrect behavior X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Oliver Fromme List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Sep 2009 17:10:05 -0000 The following reply was made to PR standards/137173; it has been noted by GNATS. From: Oliver Fromme To: freebsd-standards@FreeBSD.ORG, bug-followup@FreeBSD.ORG, akosela@andykosela.com, jilles@FreeBSD.ORG Cc: Subject: Re: standards/137173: `uname -n` incorrect behavior Date: Tue, 22 Sep 2009 19:05:23 +0200 (CEST) Just for the record: The claim that Solaris doesn't print the FQDN is incorrect. Solaris prints whatever the admin has configured in /etc/nodename. If the admin has configured the FQDN, "uname -n" will print the FQDN. AFAIK it is the same for HP-UX. So, FreeBSD really behaves the same as Solaris and HP-UX: If you configure the hostname to be the FQDN, "uname -n" will print it, just like the "hostname" command. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "Unix gives you just enough rope to hang yourself -- and then a couple of more feet, just to be sure." -- Eric Allman From owner-freebsd-standards@FreeBSD.ORG Tue Sep 22 21:34:42 2009 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 914A5106566B; Tue, 22 Sep 2009 21:34:42 +0000 (UTC) (envelope-from andy.kosela@gmail.com) Received: from mail-fx0-f222.google.com (mail-fx0-f222.google.com [209.85.220.222]) by mx1.freebsd.org (Postfix) with ESMTP id BF0438FC24; Tue, 22 Sep 2009 21:34:41 +0000 (UTC) Received: by fxm22 with SMTP id 22so141673fxm.36 for ; Tue, 22 Sep 2009 14:34:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:reply-to:sender:to :subject:message-id:references:in-reply-to:user-agent:mime-version :content-type:content-transfer-encoding; bh=M9mNhXbNo4yODxA1GIQc2/ib5W+bbh2Vzr7y5GaIdW8=; b=J2gfR2DzlmocRWjkmj6mQiMcI9zFWQZCfna8yHZ2cYx2idOO5y0y9fApvo3c7Qr8Ka 0j9twvwwThN/RqSHlZ4Pzp6gUCC2WlgyJgT6G4TGrSbGfuT/hCS4tMn8VC3m6SC7rVWq lFEvHl0+C0jhVAdZAusvQxWL5/nMPyX2l7Epg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:reply-to:sender:to:subject:message-id:references :in-reply-to:user-agent:mime-version:content-type :content-transfer-encoding; b=BUZzY5t2LATu66J0Mkfqb2EkYOBFr/pjG3Z9wFPVqUB4UmuaKQIZrLI/+VeXgSaobb Mdn1D8Sy6f7duqiU2KVDMwveLStG+pRBhAKE0uFQST/PqfJl09HsE7elvybWqcaSUaFl f6JLqjGEABrSkLDC93N3E/szoIS4vtJsRh/FM= Received: by 10.86.17.4 with SMTP id 4mr1340406fgq.13.1253653985434; Tue, 22 Sep 2009 14:13:05 -0700 (PDT) Received: from zork.lan (nat2-131.ghnet.pl [91.150.223.131]) by mx.google.com with ESMTPS id 3sm9158fge.9.2009.09.22.14.13.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 22 Sep 2009 14:13:04 -0700 (PDT) Date: Tue, 22 Sep 2009 23:08:26 +0200 From: Andy Kosela Sender: Andy Kosela To: olli@lurza.secnetix.de, jilles@FreeBSD.ORG, freebsd-standards@FreeBSD.ORG, bug-followup@FreeBSD.ORG Message-ID: <4ab93cca.vZr1+IV6M72iTd1N%akosela@andykosela.com> References: <200909221705.n8MH5NEh064549@lurza.secnetix.de> In-Reply-To: <200909221705.n8MH5NEh064549@lurza.secnetix.de> User-Agent: Heirloom mailx 12.4 7/29/08 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Subject: Re: standards/137173: `uname -n` incorrect behavior X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: akosela@andykosela.com List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Sep 2009 21:34:42 -0000 Oliver Fromme wrote: > Just for the record: > The claim that Solaris doesn't print the FQDN is incorrect. > Solaris prints whatever the admin has configured in /etc/nodename. > If the admin has configured the FQDN, "uname -n" will print the FQDN. > AFAIK it is the same for HP-UX. > > So, FreeBSD really behaves the same as Solaris and HP-UX: > If you configure the hostname to be the FQDN, "uname -n" will print it, > just like the "hostname" command. FYI # uname -a HP-UX vital15 B.11.23 U ia64 1058748580 unlimited-user license # uname -n vital15 # hostname vital15.testdrive.hp.com so NODENAME != HOSTNAME The startup variable NODENAME is the UUCP name which is returned by uname -n, while the HOSTNAME variable sets the networking (ARPA, NFS, etc) name, which can be 64 chars long (see /usr/include/sys/param.h for MAXHOSTNAMELEN). HOSTNAME can be much longer than 8 characters BUT only if you define an 8-character or less NODENAME in the /etc/rc.config.d/netconf file. --Andy From owner-freebsd-standards@FreeBSD.ORG Tue Sep 22 21:40:03 2009 Return-Path: Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 35B3C1065679 for ; Tue, 22 Sep 2009 21:40: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 25BBA8FC18 for ; Tue, 22 Sep 2009 21:40:03 +0000 (UTC) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n8MLe2cq067974 for ; Tue, 22 Sep 2009 21:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n8MLe2N0067973; Tue, 22 Sep 2009 21:40:02 GMT (envelope-from gnats) Date: Tue, 22 Sep 2009 21:40:02 GMT Message-Id: <200909222140.n8MLe2N0067973@freefall.freebsd.org> To: freebsd-standards@FreeBSD.org From: Andy Kosela Cc: Subject: Re: standards/137173: `uname -n` incorrect behavior X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Andy Kosela List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Sep 2009 21:40:03 -0000 The following reply was made to PR standards/137173; it has been noted by GNATS. From: Andy Kosela To: olli@lurza.secnetix.de, jilles@FreeBSD.ORG, freebsd-standards@FreeBSD.ORG, bug-followup@FreeBSD.ORG Cc: Subject: Re: standards/137173: `uname -n` incorrect behavior Date: Tue, 22 Sep 2009 23:08:26 +0200 Oliver Fromme wrote: > Just for the record: > The claim that Solaris doesn't print the FQDN is incorrect. > Solaris prints whatever the admin has configured in /etc/nodename. > If the admin has configured the FQDN, "uname -n" will print the FQDN. > AFAIK it is the same for HP-UX. > > So, FreeBSD really behaves the same as Solaris and HP-UX: > If you configure the hostname to be the FQDN, "uname -n" will print it, > just like the "hostname" command. FYI # uname -a HP-UX vital15 B.11.23 U ia64 1058748580 unlimited-user license # uname -n vital15 # hostname vital15.testdrive.hp.com so NODENAME != HOSTNAME The startup variable NODENAME is the UUCP name which is returned by uname -n, while the HOSTNAME variable sets the networking (ARPA, NFS, etc) name, which can be 64 chars long (see /usr/include/sys/param.h for MAXHOSTNAMELEN). HOSTNAME can be much longer than 8 characters BUT only if you define an 8-character or less NODENAME in the /etc/rc.config.d/netconf file. --Andy From owner-freebsd-standards@FreeBSD.ORG Wed Sep 23 08:20:32 2009 Return-Path: Delivered-To: freebsd-standards@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40084106568F; Wed, 23 Sep 2009 08:20:32 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id B011B8FC23; Wed, 23 Sep 2009 08:20:31 +0000 (UTC) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id n8N8KCR6002449; Wed, 23 Sep 2009 10:20:27 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id n8N8KBDC002448; Wed, 23 Sep 2009 10:20:11 +0200 (CEST) (envelope-from olli) Date: Wed, 23 Sep 2009 10:20:11 +0200 (CEST) Message-Id: <200909230820.n8N8KBDC002448@lurza.secnetix.de> From: Oliver Fromme To: freebsd-standards@FreeBSD.ORG, akosela@andykosela.com, jilles@FreeBSD.ORG In-Reply-To: <4ab93cca.vZr1+IV6M72iTd1N%akosela@andykosela.com> X-Newsgroups: list.freebsd-standards User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Wed, 23 Sep 2009 10:20:27 +0200 (CEST) Cc: Subject: Re: standards/137173: `uname -n` incorrect behavior X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Sep 2009 08:20:32 -0000 Andy Kosela wrote: > Oliver Fromme wrote: > > > Just for the record: > > The claim that Solaris doesn't print the FQDN is incorrect. > > Solaris prints whatever the admin has configured in /etc/nodename. > > If the admin has configured the FQDN, "uname -n" will print the FQDN. > > AFAIK it is the same for HP-UX. > > > > So, FreeBSD really behaves the same as Solaris and HP-UX: > > If you configure the hostname to be the FQDN, "uname -n" will print it, > > just like the "hostname" command. > > FYI > > # uname -a > HP-UX vital15 B.11.23 U ia64 1058748580 unlimited-user license > # uname -n > vital15 > # hostname > vital15.testdrive.hp.com > > so NODENAME != HOSTNAME > > The startup variable NODENAME is the UUCP name which is returned by > uname -n, while the HOSTNAME variable sets the networking (ARPA, NFS, > etc) name, which can be 64 chars long (see /usr/include/sys/param.h for > MAXHOSTNAMELEN). HOSTNAME can be much longer than 8 characters BUT only > if you define an 8-character or less NODENAME in the > /etc/rc.config.d/netconf file. Thanks for pointing that out. So Solaris is more modern than HP-UX. ;-) Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things." -- Doug Gwyn