----- Ursprüngliche Mail -----
> Von: "Marko Petrović" <petrovicmarko2...@gmail.com>
> +static int uml_chown(const char *pathname, unsigned int owner, unsigned int
> group)

Is there a specific reason why you are not using uid_t and gid_t?

> +{
> +     int status;
> +
> +     if (use_xattr) {
> +             if (owner != -1) {

Doesn't -1 clash with the uid space?
Same for gid.

> +                     status = setxattr(pathname, "user.umluid", &owner,
> +                                                     sizeof(unsigned int), 
> 0);


I'd prefer storing the values platform independent. e.g. in __le32. 
Just to be future prove.

Thanks,
//richard

_______________________________________________
linux-um mailing list
linux-um@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-um

Reply via email to