X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fquota%2Fqsd_lib.c;h=c535f90740ed6bff4b91ecf4dc10fcff9a4e62c0;hp=da1c7c84123ad04216be9ab9ebb285574a719005;hb=c232a80d95849b8e776ae6b738585eacbfdc3612;hpb=b36239ef06c3d48978251e92133e77394f8f8670 diff --git a/lustre/quota/qsd_lib.c b/lustre/quota/qsd_lib.c index da1c7c8..c535f90 100644 --- a/lustre/quota/qsd_lib.c +++ b/lustre/quota/qsd_lib.c @@ -168,6 +168,7 @@ static ssize_t qsd_enabled_seq_write(struct file *file, if (copy_from_user(valstr, buffer, count)) GOTO(out, count = -EFAULT); + valstr[sizeof(valstr) - 1] = 0; if (strchr(valstr, 'u')) enabled |= BIT(USRQUOTA); if (strchr(valstr, 'g'))