summaryrefslogtreecommitdiff
path: root/meta/packages/unfs-server/unfs-server-2.2beta47/013-mntpathlen.patch
diff options
context:
space:
mode:
authorScott Garman <scott.a.garman@intel.com>2010-08-12 21:02:58 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-20 16:20:09 +0100
commitb5b3825ce6df45b16e1f3e15001da213bc8b0a55 (patch)
treeb2577de0765074d6e2bdbbdf1862220b52e8d7c1 /meta/packages/unfs-server/unfs-server-2.2beta47/013-mntpathlen.patch
parent735210556dc709b3c2367389fa6ea9c0109412b1 (diff)
downloadopenembedded-core-b5b3825ce6df45b16e1f3e15001da213bc8b0a55.tar.gz
openembedded-core-b5b3825ce6df45b16e1f3e15001da213bc8b0a55.tar.bz2
openembedded-core-b5b3825ce6df45b16e1f3e15001da213bc8b0a55.tar.xz
openembedded-core-b5b3825ce6df45b16e1f3e15001da213bc8b0a55.zip
unfs-server: new userspace nfs recipe
This is a simple userspace NFS server, derived from one which was previously used in openSUSE 10.x. Wind River contributed many of the patches. This package is not intended for target installations, only -native and -nativesdk use. Enabling nativesdk for readline, sqlite3, and pseudo was required, as well as a few new autoconf siteconfig entries. Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Diffstat (limited to 'meta/packages/unfs-server/unfs-server-2.2beta47/013-mntpathlen.patch')
-rw-r--r--meta/packages/unfs-server/unfs-server-2.2beta47/013-mntpathlen.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/packages/unfs-server/unfs-server-2.2beta47/013-mntpathlen.patch b/meta/packages/unfs-server/unfs-server-2.2beta47/013-mntpathlen.patch
new file mode 100644
index 000000000..1f10d3c94
--- /dev/null
+++ b/meta/packages/unfs-server/unfs-server-2.2beta47/013-mntpathlen.patch
@@ -0,0 +1,32 @@
+# Patch origin: nfs-server source RPM from openSUSE 10.3
+
+--- nfs-server/mountd.c 2006/01/12 14:00:13 1.13
++++ nfs-server/mountd.c 2006/01/12 14:37:35
+@@ -76,7 +76,7 @@
+ 0
+ };
+
+-char argbuf[MNTPATHLEN + 1];
++char argbuf[PATH_MAX + 1];
+ char *auth_file = NULL;
+ static char *program_name;
+ int need_reinit = 0;
+@@ -97,6 +97,9 @@
+ /*
+ * MOUNT
+ * This is what the whole protocol is all about
++ *
++ * Note: librpc gets us MNTPATHLEN length strings, but realpath
++ * needs a PATH_MAX length output buffer.
+ */
+ fhstatus *
+ mountproc_mnt_1_svc(dirpath *argp, struct svc_req *rqstp)
+@@ -105,7 +108,7 @@
+ struct stat stbuf;
+ nfs_client *cp;
+ nfs_mount *mp;
+- char nargbuf[MNTPATHLEN + 1];
++ char nargbuf[PATH_MAX + 1];
+ int saved_errno = 0;
+ #ifdef WANT_LOG_MOUNTS
+ struct in_addr addr;