From e5e577cc30171232ca9a9ca6fd6f97e3d59539a1 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 16 Mar 2014 20:02:08 +0100 Subject: Fix vcs_readlink propagating error returned by console_current_id * console-client/current-vcs.c (vcs_readlink): Return error returned by `console_current_id' as a negative value. --- console-client/current-vcs.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'console-client') diff --git a/console-client/current-vcs.c b/console-client/current-vcs.c index f1112f98..fb053799 100644 --- a/console-client/current-vcs.c +++ b/console-client/current-vcs.c @@ -59,6 +59,8 @@ vcs_readlink (struct iouser *user, struct node *np, char *buf) if (ret < 0) ret = -errno; } + else + ret = -ret; return ret; } -- cgit v1.2.3