From: Todd C. Miller Date: Thu, 4 Aug 1994 20:38:01 +0000 (+0000) Subject: took out old_errno X-Git-Tag: SUDO_1_3_1~72 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6259b8270e4fd327dd477cf86d7b6478006a298b;p=sudo took out old_errno --- diff --git a/sudo_realpath.c b/sudo_realpath.c index 060f13bf4..273f3e21c 100644 --- a/sudo_realpath.c +++ b/sudo_realpath.c @@ -204,8 +204,6 @@ char * sudo_realpath(old, new) static void realpath_restore(cwd) char * cwd; { - int old_errno = errno; /* so we can restore errno... */ - /* relinquish root privs and chdir to where we started... */ be_user(); if (chdir(cwd)) { @@ -213,6 +211,4 @@ static void realpath_restore(cwd) cwd); exit(1); } - - errno = old_errno; }