From 7ab9c7ee52db8759d457819f5480378fa3aa97cc Mon Sep 17 00:00:00 2001 From: Erik Andersen Date: Fri, 12 May 2000 19:41:47 +0000 Subject: Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP which lets you compile out most of the "--help" output, saving up to 17k. Renamed mnc to nc. -Erik --- coreutils/pwd.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'coreutils/pwd.c') diff --git a/coreutils/pwd.c b/coreutils/pwd.c index e77a0ca70..19494a96c 100644 --- a/coreutils/pwd.c +++ b/coreutils/pwd.c @@ -24,15 +24,14 @@ #include "internal.h" #include #include +#include extern int pwd_main(int argc, char **argv) { char buf[BUFSIZ + 1]; - if (getcwd(buf, sizeof(buf)) == NULL) { - perror("get working directory"); - exit(FALSE); - } + if (getcwd(buf, sizeof(buf)) == NULL) + fatalError("pwd: %s", strerror(errno)); printf("%s\n", buf); exit(TRUE); -- cgit v1.2.3