commit-hurd
[Top][All Lists]
Advanced

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

[hurd] 33/98: usermux: actually use the computed flags value in netfs_at


From: Samuel Thibault
Subject: [hurd] 33/98: usermux: actually use the computed flags value in netfs_attempt_utimes
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 7d8a6e3f517d0bf959a2db2c9c774a15439f6c94
Author: Justus Winter <address@hidden>
Date:   Wed Nov 20 12:08:28 2013 +0100

    usermux: actually use the computed flags value in netfs_attempt_utimes
    
    If either atime or mtime is NULL, the respective time should be set to
    the current time.
    
    Found using the Clang Static Analyzer.
    
    * usermux/node.c (netfs_attempt_utimes): Use flags in call to
      fshelp_touch.
---
 usermux/node.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usermux/node.c b/usermux/node.c
index 324b85b..2341714 100644
--- a/usermux/node.c
+++ b/usermux/node.c
@@ -90,7 +90,7 @@ netfs_attempt_utimes (struct iouser *cred, struct node *node,
       else
        flags |= TOUCH_ATIME;
 
-      fshelp_touch (&node->nn_stat, TOUCH_CTIME, usermux_maptime);
+      fshelp_touch (&node->nn_stat, flags, usermux_maptime);
     }
   return err;
 }

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