We don't need to clear oldcred here since newcred is not NULL yet.

This commit is contained in:
John Baldwin 2002-07-13 03:13:15 +00:00
parent ae0ffa73cc
commit 63c9e754e0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=99895

View File

@ -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.
*/