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: <20101214001334.GH9394@fieldses.org>
Date:	Mon, 13 Dec 2010 19:13:34 -0500
From:	"J. Bruce Fields" <bfields@...ldses.org>
To:	bookjovi@...il.com
Cc:	neilb@...e.de, linux-nfs@...r.kernel.org,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] nfs: add missed CONFIG_NFSD_DEPRECATED

On Sat, Dec 11, 2010 at 12:21:17AM -0500, bookjovi@...il.com wrote:
> these pieces of code only make sense when CONFIG_NFSD_DEPRECATED enabled
> 
> Signed-off-by: Jovi Zhang <bookjovi@...il.com>

OK, thanks; applied for 2.6.38.--b.

> 
>  fs/nfsd/nfsctl.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c
> index 4514ebb..6840ec3 100644
> --- a/fs/nfsd/nfsctl.c
> +++ b/fs/nfsd/nfsctl.c
> @@ -127,6 +127,7 @@ static ssize_t nfsctl_transaction_write(struct file *file, const char __user *bu
>  
>  static ssize_t nfsctl_transaction_read(struct file *file, char __user *buf, size_t size, loff_t *pos)
>  {
> +#ifdef CONFIG_NFSD_DEPRECATED
>  	static int warned;
>  	if (file->f_dentry->d_name.name[0] == '.' && !warned) {
>  		printk(KERN_INFO
> @@ -135,6 +136,7 @@ static ssize_t nfsctl_transaction_read(struct file *file, char __user *buf, size
>  		       current->comm, file->f_dentry->d_name.name);
>  		warned = 1;
>  	}
> +#endif
>  	if (! file->private_data) {
>  		/* An attempt to read a transaction file without writing
>  		 * causes a 0-byte write so that the file can return
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ