> 
> diff --git a/sha1_file.c b/sha1_file.c
> index d5e1121..759991e 100644
> --- a/sha1_file.c
> +++ b/sha1_file.c
> @@ -1485,7 +1485,7 @@ int check_sha1_signature(const unsigned char *sha1, 
> void *map,
>  
>  int git_open_noatime(const char *name)

Hm, should the function then be renamed into

git_open_noatime_cloexec()

>  {
> -     static int sha1_file_open_flag = O_NOATIME;
> +     static int sha1_file_open_flag = O_NOATIME | O_CLOEXEC;
>  
>       for (;;) {
>               int fd;
> 
> 
> 

Reply via email to