diff options
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.patch | 32 |
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 0000000000..1f10d3c941 --- /dev/null +++ b/meta/packages/unfs-server/unfs-server-2.2beta47/013-mntpathlen.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | # Patch origin: nfs-server source RPM from openSUSE 10.3 | ||
2 | |||
3 | --- nfs-server/mountd.c 2006/01/12 14:00:13 1.13 | ||
4 | +++ nfs-server/mountd.c 2006/01/12 14:37:35 | ||
5 | @@ -76,7 +76,7 @@ | ||
6 | 0 | ||
7 | }; | ||
8 | |||
9 | -char argbuf[MNTPATHLEN + 1]; | ||
10 | +char argbuf[PATH_MAX + 1]; | ||
11 | char *auth_file = NULL; | ||
12 | static char *program_name; | ||
13 | int need_reinit = 0; | ||
14 | @@ -97,6 +97,9 @@ | ||
15 | /* | ||
16 | * MOUNT | ||
17 | * This is what the whole protocol is all about | ||
18 | + * | ||
19 | + * Note: librpc gets us MNTPATHLEN length strings, but realpath | ||
20 | + * needs a PATH_MAX length output buffer. | ||
21 | */ | ||
22 | fhstatus * | ||
23 | mountproc_mnt_1_svc(dirpath *argp, struct svc_req *rqstp) | ||
24 | @@ -105,7 +108,7 @@ | ||
25 | struct stat stbuf; | ||
26 | nfs_client *cp; | ||
27 | nfs_mount *mp; | ||
28 | - char nargbuf[MNTPATHLEN + 1]; | ||
29 | + char nargbuf[PATH_MAX + 1]; | ||
30 | int saved_errno = 0; | ||
31 | #ifdef WANT_LOG_MOUNTS | ||
32 | struct in_addr addr; | ||