View | Details | Raw Unified | Return to bug 239700
Collapse All | Expand All

(-)b/lib/libcasper/services/cap_fileargs/cap_fileargs.c (+5 lines)
Lines 185-190 fileargs_create_limit(int argc, const char * const *argv, int flags, Link Here
185
		nvlist_add_number(limits, "mode", (uint64_t)mode);
185
		nvlist_add_number(limits, "mode", (uint64_t)mode);
186
186
187
	for (i = 0; i < argc; i++) {
187
	for (i = 0; i < argc; i++) {
188
		if (strlen(argv[i]) > MAXPATHLEN) {
189
			nvlist_destroy(limits);
190
			errno = ENAMETOOLONG;
191
			return (NULL);
192
		}
188
		nvlist_add_null(limits, argv[i]);
193
		nvlist_add_null(limits, argv[i]);
189
	}
194
	}
190
195

Return to bug 239700