From 0e2c9fb4e09fb0c5a47ddc74b0ba53238570599e Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Fri, 3 Aug 2007 14:16:24 +0000 Subject: mount: print errno on NFS error (again) --- libbb/perror_msg.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libbb/perror_msg.c') diff --git a/libbb/perror_msg.c b/libbb/perror_msg.c index 5145795f5..2ec1a9b2a 100644 --- a/libbb/perror_msg.c +++ b/libbb/perror_msg.c @@ -14,6 +14,10 @@ void bb_perror_msg(const char *s, ...) va_list p; va_start(p, s); - bb_vperror_msg(s, p); + /* Guard against ": Success" */ + if (!errno) + bb_verror_msg(s, p, NULL); + else + bb_vperror_msg(s, p); va_end(p); } -- cgit v1.2.3