Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Feb 2003 20:59:31 -0800 (PST)
From:      Jeff Jirsa <jjirsa@hmc.edu>
To:        <freebsd-hackers@freebsd.org>
Subject:   [PATCH] misc/18466 
Message-ID:  <Pine.LNX.4.33.0302102048130.7571-200000@odin.ac.hmc.edu>

index | next in thread | raw e-mail

[-- Attachment #1 --]

In browsing through the old, open, PRs I found misc/18466 (from May,
2000). It's got the potential to be a source of substantial confusion, so
it seems to be worth addressing.

The fix seems trivial, and I've attached a very simple patch to
sysinstall.h that should fix the problem. I'm relatively sure there are
other, preferred ways of fixing the issue, and I'd be more than happy to
see some feedback.

- Jeff Jirsa

-- 
==============
Jeff Jirsa
jjirsa@hmc.edu
HMC 2003
==============

[-- Attachment #2 --]
--- sysinstall.h.orig	Sun Feb  9 15:02:25 2003
+++ sysinstall.h	Mon Feb 10 11:06:54 2003
@@ -72,7 +72,13 @@
 #endif
 
 /* device limits */
-#define DEV_NAME_MAX		64	/* The maximum length of a device name	*/
+					/* The maximum length of a device name	*/				
+#if (__FreeBSD_version < 500000 && defined _POSIX_PATH_MAX)
+#define DEV_NAME_MAX		_POSIX_PATH_MAX	
+#else
+#define DEV_NAME_MAX		64
+#endif
+
 #define DEV_MAX			100	/* The maximum number of devices we'll deal with */
 #define INTERFACE_MAX		50	/* Maximum number of network interfaces we'll deal with */
 #define IO_ERROR		-2	/* Status code for I/O error rather than normal EOF */
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.33.0302102048130.7571-200000>