took out old_errno

This commit is contained in:
Todd C. Miller
1994-08-04 20:38:01 +00:00
parent 3f0fd7c8c7
commit 6259b8270e

View File

@@ -204,8 +204,6 @@ char * sudo_realpath(old, new)
static void realpath_restore(cwd) static void realpath_restore(cwd)
char * cwd; char * cwd;
{ {
int old_errno = errno; /* so we can restore errno... */
/* relinquish root privs and chdir to where we started... */ /* relinquish root privs and chdir to where we started... */
be_user(); be_user();
if (chdir(cwd)) { if (chdir(cwd)) {
@@ -213,6 +211,4 @@ static void realpath_restore(cwd)
cwd); cwd);
exit(1); exit(1);
} }
errno = old_errno;
} }