Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 532514 | Differences between
and this patch

Collapse All | Expand All

(-)a/utils/mountd/cache.c (-2 / +5 lines)
Lines 11-16 Link Here
11
#include <config.h>
11
#include <config.h>
12
#endif
12
#endif
13
13
14
#ifndef _GNU_SOURCE
15
#define _GNU_SOURCE
16
#endif
17
14
#include <sys/types.h>
18
#include <sys/types.h>
15
#include <sys/select.h>
19
#include <sys/select.h>
16
#include <sys/stat.h>
20
#include <sys/stat.h>
Lines 1334-1340 static int cache_export_ent(char *domain, struct exportent *exp, char *path) Link Here
1334
		 */
1338
		 */
1335
		struct stat stb;
1339
		struct stat stb;
1336
		size_t l = strlen(exp->e_path);
1340
		size_t l = strlen(exp->e_path);
1337
		__dev_t dev;
1341
		dev_t dev;
1338
1342
1339
		if (strlen(path) <= l || path[l] != '/' ||
1343
		if (strlen(path) <= l || path[l] != '/' ||
1340
		    strncmp(exp->e_path, path, l) != 0)
1344
		    strncmp(exp->e_path, path, l) != 0)
1341
- 

Return to bug 532514