diff --git a/mkbootimg/tar.c b/mkbootimg/tar.c index dc17e00..ed9d38d 100644 --- a/mkbootimg/tar.c +++ b/mkbootimg/tar.c @@ -49,8 +49,8 @@ void tar_add(struct stat *st, char *name, unsigned char *content, int size) memset(end, 0, 512); strncpy((char*)end, name, 99); sprintf((char*)end + 100, "%07o", st->st_mode & 077777); - sprintf((char*)end + 108, "%07o", 0); - sprintf((char*)end + 116, "%07o", 0); + sprintf((char*)end + 108, "%07o", st->st_uid); + sprintf((char*)end + 116, "%07o", st->st_gid); sprintf((char*)end + 124, "%011o", size); sprintf((char*)end + 136, "%011o", 0); sprintf((char*)end + 148, "%06o", 0);