Re: [PATCH v15 1/4] Add flags option to get xattr method paired to __vfs_getxattr
Jan Kara <[email protected]> Tue, 5 Nov 2019 10:48:30 +0100
| Newsgroups | gmane.comp.file-systems.jfs.general |
|---|---|
| Message-ID | <20191105094830.GL22379__25395.5893496581$1572960496$gmane$org@quack2.suse.cz> |
> @@ -228,11 +228,11 @@ static int afs_xattr_get_yfs(const struct xattr_handler *handler, > break; > case 1: > data = buf; > - dsize = snprintf(buf, sizeof(buf), "%u", yacl->inherit_flag); > + dsize = scnprintf(buf, sizeof(buf), "%u", yacl->inherit_flag); > break; > case 2: > data = buf; > - dsize = snprintf(buf, sizeof(buf), "%u", yacl->num_cleaned); > + dsize = scnprintf(buf, sizeof(buf), "%u", yacl->num_cleaned); > break; > case 3: These scnprintf() changes (and there are more in the patch) probably shouldn't be here... Otherwise the patch still looks good to me :). Honza -- Jan Kara <[email protected]> SUSE Labs, CR