NetBSD Problem Report #59459

From www@netbsd.org  Thu Jun  5 07:41:38 2025
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits)
	 client-signature RSA-PSS (2048 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id C1E9D1A923A
	for <gnats-bugs@gnats.NetBSD.org>; Thu,  5 Jun 2025 07:41:37 +0000 (UTC)
Message-Id: <20250605074136.8E3461A923C@mollari.NetBSD.org>
Date: Thu,  5 Jun 2025 07:41:36 +0000 (UTC)
From: bad@bsd.de
Reply-To: bad@bsd.de
To: gnats-bugs@NetBSD.org
Subject: /exports/path/with/exactly/35/chars::1 127.1
X-Send-Pr-Version: www-1.0

>Number:         59459
>Category:       bin
>Synopsis:       /exports/path/with/exactly/35/chars::1 127.1
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bad
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 05 07:45:00 +0000 2025
>Closed-Date:    Thu Jun 05 09:32:23 +0000 2025
>Last-Modified:  Thu Jun 05 09:32:23 +0000 2025
>Originator:     Christoph Badura
>Release:        10.1
>Organization:
The Only Two Hard Problems In Computer Science Foundattiion
>Environment:
NetBSD nbvm.local 10.99.14 NetBSD 10.99.14 (NS) #3: Mon Jun  2 00:15:00 CEST 2025  bad@inspiral-coalescence-ringdown:/Users/bad/netbsd-gsoc/src-tutorial/sys/arch/amd64/compile/NS amd64
>Description:
Yesterday, while bug watching, we spotted a bug couple so rare that it
was thought to be extinct for over 24 years.  Even more lucky, we were
able to spot where it nests in mere seconds.

showmount(1) neglects to separate the exported directory from the list
of exported-to groups IFF the path is exactly 35 characters:

$ showmount -e fec0::2
Exports list on host:
/Users/bad/netbsd-gsoc/src-tutorial/obj ::1 127.1
/Users/bad/netbsd-gsoc/src-tutorial::1 127.1
/Users/bad/work/emacs-git/emacs-src192.168.56.4
$ 

Pullups all the way down to 1.6.

>How-To-Repeat:
Export some directories whose absolute path is exactly 35 characters.

>Fix:
Yes please.

>Release-Note:

>Audit-Trail:
From: "Christoph Badura" <bad@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/59459 CVS commit: src/usr.bin/showmount
Date: Thu, 5 Jun 2025 07:54:04 +0000

 Module Name:	src
 Committed By:	bad
 Date:		Thu Jun  5 07:54:04 UTC 2025

 Modified Files:
 	src/usr.bin/showmount: showmount.c

 Log Message:
 just always print a space after the exported directory

 Don't fret over whether it's 34 or 35 characters when an explicit separator
 is necessary, just always print one.

 Terminates PR bin/59459 with extreme prejudice.


 To generate a diff of this commit:
 cvs rdiff -u -r1.23 -r1.24 src/usr.bin/showmount/showmount.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

Responsible-Changed-From-To: bin-bug-people->bad
Responsible-Changed-By: bad@NetBSD.org
Responsible-Changed-When: Thu, 05 Jun 2025 07:55:55 +0000
Responsible-Changed-Why:
mine


From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/59459 CVS commit: [netbsd-10] src/usr.bin/showmount
Date: Thu, 5 Jun 2025 08:45:44 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Thu Jun  5 08:45:44 UTC 2025

 Modified Files:
 	src/usr.bin/showmount [netbsd-10]: showmount.c

 Log Message:
 Pull up following revision(s) (requested by bad in ticket #1127):

 	usr.bin/showmount/showmount.c: revision 1.24
 	usr.bin/showmount/showmount.c: revision 1.25

 just always print a space after the exported directory

 Don't fret over whether it's 34 or 35 characters when an explicit separator
 is necessary, just always print one.

 Terminates PR bin/59459 with extreme prejudice.

 actually get rid of now unnecessary "len" too


 To generate a diff of this commit:
 cvs rdiff -u -r1.23 -r1.23.14.1 src/usr.bin/showmount/showmount.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/59459 CVS commit: [netbsd-9] src/usr.bin/showmount
Date: Thu, 5 Jun 2025 08:52:38 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Thu Jun  5 08:52:38 UTC 2025

 Modified Files:
 	src/usr.bin/showmount [netbsd-9]: showmount.c

 Log Message:
 Pull up following revision(s) (requested by bad in ticket #1958):

 	usr.bin/showmount/showmount.c: revision 1.24
 	usr.bin/showmount/showmount.c: revision 1.25

 just always print a space after the exported directory

 Don't fret over whether it's 34 or 35 characters when an explicit separator
 is necessary, just always print one.

 Terminates PR bin/59459 with extreme prejudice.

 actually get rid of now unnecessary "len" too


 To generate a diff of this commit:
 cvs rdiff -u -r1.23 -r1.23.6.1 src/usr.bin/showmount/showmount.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: bad@NetBSD.org
State-Changed-When: Thu, 05 Jun 2025 09:32:23 +0000
State-Changed-Why:
fixed and pulled up: [pullup-10 #1127], [pullup-9 #1958]


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.