rootdir
struct csrdirectory *rootdir, *udir;
rootdir = (struct csrdirectory *)&fwdev->csrrom[root_off];
root_len = rootdir->crc_len;
if (!crom_crc_valid((uint32_t *)&rootdir->entry[0], root_len,
rootdir->crc) && firewire_debug)
if (rootdir->entry[ri].key != CROM_UDIR)
udir_qoff = reg_off + rootdir->entry[ri].val;
strlcpy(conf.rootdir, "/", sizeof(conf.rootdir));
strlcpy(conf.rootdir, optarg,
sizeof(conf.rootdir));
conf.rootfd = open(conf.rootdir, O_DIRECTORY|O_CLOEXEC);
errx(EXIT_FAILURE, "Unable to open '%s'", conf.rootdir);
char rootdir[MAXPATHLEN];
if (strcmp(conf.rootdir, "/") != 0) {