Hi Peter, no cpio(1) is not wrong, you're just trying to access a file through your program AND cpio(1) that for security reasons otherwise shouldn't be the way you're doing it.
why reinventing the wheel? can't you just use dump(1) -f or send it via other means? if you really want to use your program just don't use pledge(2), or just ignore that file. /mestre