opt_umask = get_int_option(options, "umask", 8, sys_umask);
ef->dmask = get_int_option(options, "dmask", 8, opt_umask) & 0777;
ef->fmask = get_int_option(options, "fmask", 8, opt_umask) & 0777;
+
+ ef->uid = get_int_option(options, "uid", 10, geteuid());
+ ef->gid = get_int_option(options, "gid", 10, getegid());
}
int exfat_mount(struct exfat* ef, const char* spec, const char* options)
else
stbuf->st_mode = S_IFREG | (0777 & ~ef->fmask);
stbuf->st_nlink = 1;
+ stbuf->st_uid = ef->uid;
+ stbuf->st_gid = ef->gid;
stbuf->st_size = node->size;
stbuf->st_blocks = DIV_ROUND_UP(node->size, CLUSTER_SIZE(*ef->sb)) *
CLUSTER_SIZE(*ef->sb) / 512;