#include "busybox.h"
#include <errno.h>
#include <unistd.h>
+#include <stdlib.h>
int readlink_main(int argc, char **argv)
{
buf = xrealloc(buf, bufsize);
size = readlink(argv[1], buf, bufsize);
if (size == -1)
- fatalError("%s: %s\n", argv[1], strerror(errno));
+ perror_msg_and_die("%s", argv[1]);
}
buf[size] = '\0';