projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add errno.h
[oweals/busybox.git]
/
pwd.c
diff --git
a/pwd.c
b/pwd.c
index c9de7778eec0765c75a1da43a1d2e4a553b560b9..da089f37c89de894bc126159b8ead12d37c64cde 100644
(file)
--- a/
pwd.c
+++ b/
pwd.c
@@
-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"
);
- p
rintf("%s\n",
buf);
- return
(TRUE)
;
+ p
uts(
buf);
+ return
EXIT_SUCCESS
;
}