summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--console-client/current-vcs.c2
1 files changed, 2 insertions, 0 deletions
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;
}