]> granicus.if.org Git - sudo/commitdiff
always use getcwd
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 4 Jun 1994 19:29:49 +0000 (19:29 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 4 Jun 1994 19:29:49 +0000 (19:29 +0000)
sudo.c

diff --git a/sudo.c b/sudo.c
index dff93ca08bcfb1ca64533a2dcf84bb6b267fe2fc..8328e41b39d6450c7907c0228e235eb4a9b2170a 100644 (file)
--- a/sudo.c
+++ b/sudo.c
@@ -225,11 +225,7 @@ static void load_globals()
     /*
      * so we know where we are... (do as user)
      */
-#ifdef HAVE_GETCWD
     if (!getcwd(cwd, (size_t) (MAXPATHLEN + 1))) {
-#else
-    if (!getwd(cwd)) {
-#endif /* HAVE_GETCWD */
        (void) fprintf(stderr, "%s:  Can't get working directory!\n", Argv[0]);
        exit(1);
     }