Hi, Over at TinyCore, we receive a huge number of questions of the type "I got "short write", what does it mean?". Mostly for the rpi port and when using bb wget. The attached patch makes the message more informative, and hopefully lets more people know what's up without having to ask.
- Lauri -- http://www.fastmail.com - A no graphics, no pop-ups email service
From 5c9f3c91db1e8f5b7adb7fb8211ece92a5ecc756 Mon Sep 17 00:00:00 2001 From: Lauri Kasanen <cur...@operamail.com> Date: Sun, 4 Sep 2016 13:08:59 +0300 Subject: [PATCH] libbb: More informative "short write" error Signed-off-by: Lauri Kasanen <cur...@operamail.com> --- libbb/xfuncs_printf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbb/xfuncs_printf.c b/libbb/xfuncs_printf.c index e9222f6..101836e 100644 --- a/libbb/xfuncs_printf.c +++ b/libbb/xfuncs_printf.c @@ -236,7 +236,7 @@ void FAST_FUNC xwrite(int fd, const void *buf, size_t count) if (count) { ssize_t size = full_write(fd, buf, count); if ((size_t)size != count) - bb_error_msg_and_die("short write"); + bb_error_msg_and_die("short write, out of disk space?"); } } void FAST_FUNC xwrite_str(int fd, const char *str) -- 2.6.2
_______________________________________________ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox