diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-02-11 16:19:28 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-02-11 16:19:28 +0000 |
commit | 6ca0444420223c224162674902d4f6e4e093962d (patch) | |
tree | c13da1537be3327e041fac86d9fdce68de70298a /coreutils/pwd.c | |
parent | 136f42f503cb3e9588e62332d043e92b7475ec4e (diff) | |
download | busybox-w32-6ca0444420223c224162674902d4f6e4e093962d.tar.gz busybox-w32-6ca0444420223c224162674902d4f6e4e093962d.tar.bz2 busybox-w32-6ca0444420223c224162674902d4f6e4e093962d.zip |
syslogd: fix "readpath bug" by using readlink instead
libbb: rename xgetcwd and xreadlink
Diffstat (limited to 'coreutils/pwd.c')
-rw-r--r-- | coreutils/pwd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/coreutils/pwd.c b/coreutils/pwd.c index b4599b4f3..d96f6a8e5 100644 --- a/coreutils/pwd.c +++ b/coreutils/pwd.c | |||
@@ -16,7 +16,8 @@ int pwd_main(int argc, char **argv) | |||
16 | { | 16 | { |
17 | char *buf; | 17 | char *buf; |
18 | 18 | ||
19 | if ((buf = xgetcwd(NULL)) != NULL) { | 19 | buf = xrealloc_getcwd_or_warn(NULL); |
20 | if (buf != NULL) { | ||
20 | puts(buf); | 21 | puts(buf); |
21 | fflush_stdout_and_exit(EXIT_SUCCESS); | 22 | fflush_stdout_and_exit(EXIT_SUCCESS); |
22 | } | 23 | } |