Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F166430420
D25095.id72532.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
960 B
Referenced Files
None
Subscribers
None
D25095.id72532.diff
View Options
Index: lib/libcasper/services/cap_fileargs/cap_fileargs.c
===================================================================
--- lib/libcasper/services/cap_fileargs/cap_fileargs.c
+++ lib/libcasper/services/cap_fileargs/cap_fileargs.c
@@ -500,7 +500,7 @@
static void
fileargs_add_cache(nvlist_t *nvlout, const nvlist_t *limits,
- const char *curent_name)
+ const char *current_name)
{
int type, i, fd;
void *cookie;
@@ -527,9 +527,9 @@
break;
}
- if (type != NV_TYPE_NULL ||
- (curent_name != NULL && strcmp(fname, curent_name) == 0)) {
- curent_name = NULL;
+ if (type != NV_TYPE_NULL || (current_name != NULL &&
+ strcmp(fname, current_name) == 0)) {
+ current_name = NULL;
i--;
continue;
}
@@ -553,7 +553,7 @@
nvlist_add_binary(new, "stat", &sb, sizeof(sb));
}
- nvlist_add_nvlist(nvlout, fname, new);
+ nvlist_move_nvlist(nvlout, fname, new);
}
cacheposition = cookie;
lastname = fname;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Aug 14, 1:11 PM (5 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36729691
Default Alt Text
D25095.id72532.diff (960 B)
Attached To
Mode
D25095: cap_fileargs: Fix a descriptor leak in the service process.
Attached
Detach File
Event Timeline
Log In to Comment