Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 353717
Collapse All | Expand All

(-)file_not_specified_in_diff (-4 / +4 lines)
Line  Link Here
0
-- nfs-utils-1.1.4/utils/exportfs/exportfs.c
0
++ nfs-utils-1.1.4/utils/exportfs/exportfs.c
Lines 348-354 Link Here
348
{
348
{
349
	int fd;
349
	int fd;
350
	int n;
350
	int n;
351
	char *setup = "nfsd 0.0.0.0 2147483647 -test-client-\n";
351
	char *setup = "nfsd 0.0.0.0 2147483647 XtestXclientX\n";
352
	fd = open("/proc/net/rpc/auth.unix.ip/channel", O_WRONLY);
352
	fd = open("/proc/net/rpc/auth.unix.ip/channel", O_WRONLY);
353
	if ( fd < 0) return 0;
353
	if ( fd < 0) return 0;
354
	n = write(fd, setup, strlen(setup));
354
	n = write(fd, setup, strlen(setup));
Lines 366-372 Link Here
366
	char buf[1024];
366
	char buf[1024];
367
	int fd, n;
367
	int fd, n;
368
368
369
	sprintf(buf, "-test-client- %s 3 %d -1 -1 0\n",
369
	sprintf(buf, "XtestXclientX %s 3 %d -1 -1 0\n",
370
		path,
370
		path,
371
		with_fsid ? NFSEXP_FSID : 0);
371
		with_fsid ? NFSEXP_FSID : 0);
372
	fd = open("/proc/net/rpc/nfsd.export/channel", O_WRONLY);
372
	fd = open("/proc/net/rpc/nfsd.export/channel", O_WRONLY);
Lines 385-391 Link Here
385
	/* Check that the given export point is potentially exportable.
385
	/* Check that the given export point is potentially exportable.
386
	 * We just give warnings here, don't cause anything to fail.
386
	 * We just give warnings here, don't cause anything to fail.
387
	 * If a path doesn't exist, or is not a dir or file, give an warning
387
	 * If a path doesn't exist, or is not a dir or file, give an warning
388
	 * otherwise trial-export to '-test-client-' and check for failure.
388
	 * otherwise trial-export to 'XtestXclientX' and check for failure.
389
	 */
389
	 */
390
	struct stat stb;
390
	struct stat stb;
391
	char *path = exp->m_export.e_path;
391
	char *path = exp->m_export.e_path;

Return to bug 353717