please pull git://charm.itp.tuwien.ac.at/mattems/klibc/.git maks commit 533d99a13771c32a8ad36cb2884f0e74acd90c87 Author: maximilian attems <maks at sternwelten.at> Date: Mon Sep 4 18:37:11 2006 +0200 [klibc] nfsmount improve error message use in failure path strerror(), beautifies error message: mount call failed: 13 -> mount call failed - server replied: Permission denied. Signed-off-by: maximilian attems <maks at sternwelten.at> diff --git a/usr/kinit/nfsmount/mount.c b/usr/kinit/nfsmount/mount.c index 066f6cd..a55af91 100644 --- a/usr/kinit/nfsmount/mount.c +++ b/usr/kinit/nfsmount/mount.c @@ -187,8 +187,8 @@ static int mount_call(uint32_t proc, uin } if (mnt_reply.status != 0) { - fprintf(stderr, "mount call failed: %d\n", - ntohl(mnt_reply.status)); + fprintf(stderr, "mount call failed - server replied: %s.\n", + strerror(ntohl(mnt_reply.status))); goto bail; }