]> granicus.if.org Git - sudo/commitdiff
took out old_errno
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 4 Aug 1994 20:38:01 +0000 (20:38 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 4 Aug 1994 20:38:01 +0000 (20:38 +0000)
sudo_realpath.c

index 060f13bf453a2ae54aa916d45c409a46750e9c65..273f3e21c5d49f8a6d6154aeefae7d2157afc8c6 100644 (file)
@@ -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;
 }