[LTP] [PATCH v3 2/9] Rewrite userns02.c using new LTP API
Petr Vorel
pvorel@suse.cz
Mon Mar 28 22:50:44 CEST 2022
Hi Cyril, Andrea,
> > + sprintf(path, "/proc/%d/gid_map", childpid);
> > + sprintf(content, "100 %d 1", parentgid);
> > +
> > + fd = SAFE_OPEN(path, O_WRONLY, 0644);
> > + SAFE_WRITE(1, fd, content, strlen(content));
> > + SAFE_CLOSE(fd);
> I've shortened this part significantly with SAFE_FILE_PRINTF() and
> pushed, thanks.
Sorry for overlooking this one.
Kind regards,
Petr
More information about the ltp
mailing list