Re: [PATCH] RESEND: add missing O_CLOEXEC in kmod_module_get_size()

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

 



On Wed, Jun 18, 2014 at 9:51 PM, Cristian Rodríguez
<crrodriguez@xxxxxxxxxxxx> wrote:
> ---
>  libkmod/libkmod-module.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libkmod/libkmod-module.c b/libkmod/libkmod-module.c
> index 1d90f34..8046262 100644
> --- a/libkmod/libkmod-module.c
> +++ b/libkmod/libkmod-module.c
> @@ -1781,7 +1781,7 @@ KMOD_EXPORT long kmod_module_get_size(const struct kmod_module *mod)
>          * loaded.
>          */
>         snprintf(line, sizeof(line), "/sys/module/%s", mod->name);
> -       dfd = open(line, O_RDONLY);
> +       dfd = open(line, O_RDONLY|O_CLOEXEC);
>         if (dfd < 0)
>                 return -errno;
>
> --

I don't know what's  the RESEND in the subject, but the patch looks
good. I removed it and applied.

Thanks.

-- 

Lucas De Marchi
--
To unsubscribe from this list: send the line "unsubscribe linux-modules" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux