syslogd: fix "readpath bug" by using readlink instead
libbb: rename xgetcwd and xreadlink
This commit is contained in:
@@ -16,7 +16,8 @@ int pwd_main(int argc, char **argv)
|
||||
{
|
||||
char *buf;
|
||||
|
||||
if ((buf = xgetcwd(NULL)) != NULL) {
|
||||
buf = xrealloc_getcwd_or_warn(NULL);
|
||||
if (buf != NULL) {
|
||||
puts(buf);
|
||||
fflush_stdout_and_exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user