more bugs fixed -- found doing regression testing
[oweals/busybox.git] / pwd.c
diff --git a/pwd.c b/pwd.c
index f0c923b7b3cc35b1f777928feb30bdeba20a8fdc..da089f37c89de894bc126159b8ead12d37c64cde 100644 (file)
--- a/pwd.c
+++ b/pwd.c
@@ -21,7 +21,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <dirent.h>
 #include <errno.h>
@@ -31,8 +31,8 @@ extern int pwd_main(int argc, char **argv)
        char buf[BUFSIZ + 1];
 
        if (getcwd(buf, sizeof(buf)) == NULL)
-               fatalError("%s\n", strerror(errno));
+               perror_msg_and_die("getcwd");
 
-       printf("%s\n", buf);
-       return(TRUE);
+       puts(buf);
+       return EXIT_SUCCESS;
 }