summaryrefslogtreecommitdiff
path: root/coreutils/pwd.c
diff options
context:
space:
mode:
authorEric Andersen1999-10-12 15:42:48 +0000
committerEric Andersen1999-10-12 15:42:48 +0000
commit2ce1edcf544ac675e6762c9861a6b918401ea716 (patch)
tree34245558cd448f01969679fc420de4dfd246dc13 /coreutils/pwd.c
parentf811e07b072600a3784a92e5a1dc8a93dac477eb (diff)
downloadbusybox-2ce1edcf544ac675e6762c9861a6b918401ea716.zip
busybox-2ce1edcf544ac675e6762c9861a6b918401ea716.tar.gz
Latest and greatest.
-Erik
Diffstat (limited to 'coreutils/pwd.c')
-rw-r--r--coreutils/pwd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/coreutils/pwd.c b/coreutils/pwd.c
index d9ab54e..893ed1e 100644
--- a/coreutils/pwd.c
+++ b/coreutils/pwd.c
@@ -4,15 +4,15 @@
const char pwd_usage[] = "Print the current directory.\n";
extern int
-pwd_main(struct FileInfo * i, int argc, char * * argv)
+pwd_main(int argc, char * * argv)
{
char buf[1024];
if ( getcwd(buf, sizeof(buf)) == NULL ) {
- name_and_error("get working directory");
- return 1;
+ perror("get working directory");
+ exit( FALSE);
}
printf("%s\n", buf);
- return 0;
+ exit( TRUE);
}