commit-hurd
[Top][All Lists]
Advanced

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

[hurd] 32/98: nfsd: fix error handling in op_remove


From: Samuel Thibault
Subject: [hurd] 32/98: nfsd: fix error handling in op_remove
Date: Tue, 14 Jan 2014 02:00:00 +0000

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

sthibault pushed a commit to branch upstream
in repository hurd.

commit d1fd151cdd1faec5fd4966118586c746a89d93c1
Author: Justus Winter <address@hidden>
Date:   Wed Nov 20 12:01:43 2013 +0100

    nfsd: fix error handling in op_remove
    
    Found using the Clang Static Analyzer.
    
    * nfsd/ops.c (op_remove): Fix error handling.
---
 nfsd/ops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nfsd/ops.c b/nfsd/ops.c
index d503290..6e2cbb1 100644
--- a/nfsd/ops.c
+++ b/nfsd/ops.c
@@ -398,7 +398,7 @@ op_remove (struct cache_handle *c,
   err = dir_unlink (c->port, name);
   free (name);
 
-  return 0;
+  return err;
 }
 
 static error_t

-- 
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]