X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;ds=sidebyside;f=coreutils%2Fpwd.c;h=a7a5f78a1771b847bfcb895792bf0c3573818832;hb=cbe31dace5fb24304694d399b9eb267fbe752516;hp=f0c923b7b3cc35b1f777928feb30bdeba20a8fdc;hpb=be84cd4ef66f8956eb4c7ff0542fd1ba823a70e7;p=oweals%2Fbusybox.git diff --git a/coreutils/pwd.c b/coreutils/pwd.c index f0c923b7b..a7a5f78a1 100644 --- a/coreutils/pwd.c +++ b/coreutils/pwd.c @@ -21,18 +21,20 @@ * */ -#include "internal.h" #include #include #include +#include +#include +#include "busybox.h" 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; }