commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 51/53: Fix vcs_readlink propagating error returned by console_cur


From: Samuel Thibault
Subject: [hurd] 51/53: Fix vcs_readlink propagating error returned by console_current_id
Date: Thu, 20 Mar 2014 02:23:53 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit e5e577cc30171232ca9a9ca6fd6f97e3d59539a1
Author: Samuel Thibault <address@hidden>
Date:   Sun Mar 16 20:02:08 2014 +0100

    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(+)

diff --git a/console-client/current-vcs.c b/console-client/current-vcs.c
index f1112f9..fb05379 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;
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]