lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87y49t4hi6.fsf@mail.parknet.co.jp>
Date:	Tue, 08 Mar 2016 15:21:21 +0900
From:	OGAWA Hirofumi <hirofumi@...l.parknet.co.jp>
To:	"Maciej S. Szmigiero" <mail@...iej.szmigiero.name>
Cc:	Jonathan Corbet <corbet@....net>, linux-doc@...r.kernel.org,
	linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] fat: add config option to set UTF-8 mount option by default

"Maciej S. Szmigiero" <mail@...iej.szmigiero.name> writes:

> +#ifdef CONFIG_FAT_DEFAULT_UTF8
> +	opts->utf8 = is_vfat;
> +#else
> +	opts->utf8 = 0;
> +#endif
> +

Maybe, better to use IS_ENABLED(CONFIG_FAT_DEFAULT_UTF8)?

I.e.,

	opts->utf8 = IS_ENABLED(CONFIG_FAT_DEFAULT_UTF8) && is_vfat;

Thanks.
-- 
OGAWA Hirofumi <hirofumi@...l.parknet.co.jp>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ