Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145730075
D26966.id78795.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
466 B
Referenced Files
None
Subscribers
None
D26966.id78795.diff
View Options
Index: usr.bin/login/login.c
===================================================================
--- usr.bin/login/login.c
+++ usr.bin/login/login.c
@@ -793,6 +793,7 @@
char *p;
const char **pp;
size_t n;
+ int rv;
if (strlen(s) > 1024 || (p = strchr(s, '=')) == NULL)
return (0);
@@ -804,8 +805,10 @@
return (0);
}
*p = '\0';
- (void)setenv(s, p + 1, 1);
+ rv = setenv(s, p + 1, 1);
*p = '=';
+ if (rv == 1)
+ return (0);
return (1);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Feb 24, 4:45 PM (13 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28976398
Default Alt Text
D26966.id78795.diff (466 B)
Attached To
Mode
D26966: login: add a check for a post-condition when exporting the environment
Attached
Detach File
Event Timeline
Log In to Comment