Re: [PATCH][cifs-utils] avoid using mktemp when updating mtab

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

 



On Tue, Jan 21, 2025 at 6:19 AM Steve French <smfrench@xxxxxxxxx> wrote:
>
> Attached patch to  Fix build warning: cifs-utils/mount.cifs.c:1726:
>     warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'
>
> Use of mktemp() has been deprecated (e.g. due to security issues with
> symlink races), and instead mkstemp is often recommended.  Change
> the use of mktemp to mkstemp in del_mtab in cifs-utils
>
> Fixes: f46dd7661cfb ("mount.cifs: Properly update mtab during remount")
>
> Opinions? Better way to address it?
>
> --
> Thanks,
>
> Steve

Seems like a reasonable change. RB

-- 
Regards,
Shyam





[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux