tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ffsv2 extattr support



On Fri, Jun 20, 2014 at 12:13:00PM +0200, Thomas Schmitt wrote:
> Probable cause is in getextattr.c line 314:
> 
>                         val_len = strlen(argv[0]) + 1;
> 
> with effect in line 338:
>                                 error = extattr_set_file(argv[arg_counter],
>                                     attrnamespace, attrname, buf,
>                                     val_len + flag_null);

IIRC, we must store a trailing 0 because of an oddity in the FreeBSD API.
Perhaps it should be stripped when reading the attribute? How is it done
in FreeBSD sources?

-- 
Emmanuel Dreyfus
manu%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index