Skip to content
Commit 698ad1a5 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Trond Myklebust
Browse files

NFS: Fix an off by one in root_nfs_cat()

The intent is to check if 'dest' is truncated or not. So, >= should be
used instead of >, because strlcat() returns the length of 'dest' and 'src'
excluding the trailing NULL.

Fixes: 56463e50

 ("NFS: Use super.c for NFSROOT mount option parsing")
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: default avatarBenjamin Coddington <bcodding@redhat.com>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent 1548036e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment