[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 09/12] usermux: actually use the computed flags value in netf
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 09/12] usermux: actually use the computed flags value in netfs_attempt_utimes |
Date: |
Wed, 20 Nov 2013 23:52:59 +0100 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Justus Winter, le Wed 20 Nov 2013 14:38:02 +0100, a écrit :
> 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.
Ack.
> ---
> 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;
> }
> --
> 1.7.10.4
>
--
Samuel
"I once witnessed a long-winded, month-long flamewar over the use of
mice vs. trackballs...It was very silly."
(By Matt Welsh)
- Re: [PATCH 04/12] libnetfs: fix a dead store, (continued)
- [PATCH 03/12] libps: fix the length computation in fprint_frac_value, Justus Winter, 2013/11/20
- [PATCH 06/12] fatfs: fix error handling in diskfs_get_directs, Justus Winter, 2013/11/20
- [PATCH 07/12] ftpfs: fix error handling in refresh_dir, Justus Winter, 2013/11/20
- [PATCH 12/12] libshouldbeinlibc: fix error handling in maptime_map, Justus Winter, 2013/11/20
- [PATCH 09/12] usermux: actually use the computed flags value in netfs_attempt_utimes, Justus Winter, 2013/11/20
- Re: [PATCH 09/12] usermux: actually use the computed flags value in netfs_attempt_utimes,
Samuel Thibault <=
- [PATCH 08/12] nfsd: fix error handling in op_remove, Justus Winter, 2013/11/20
- [PATCH 10/12] libshouldbeinlibc: fix dead initialization in fmt_named_interval, Justus Winter, 2013/11/20
- [PATCH 11/12] mach-defpager: drop all register qualifiers, Justus Winter, 2013/11/20