We don't need to clear oldcred here since newcred is not NULL yet.
This commit is contained in:
parent
ae0ffa73cc
commit
63c9e754e0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=99895
@ -396,10 +396,8 @@ execve(td, uap)
|
||||
#endif
|
||||
/* Make sure file descriptors 0..2 are in use. */
|
||||
error = fdcheckstd(td);
|
||||
if (error != 0) {
|
||||
oldcred = NULL;
|
||||
if (error != 0)
|
||||
goto done1;
|
||||
}
|
||||
/*
|
||||
* Set the new credentials.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user