hsb->s_gid = current->gid;
hsb->s_file_umask = 0644;
hsb->s_dir_umask = 0755;
- hsb->s_type = 0x3f3f3f3f; /* == '????' */
- hsb->s_creator = 0x3f3f3f3f; /* == '????' */
+ hsb->s_type = hsb->s_creator = cpu_to_be32(0x3f3f3f3f); /* == '????' */
hsb->s_quiet = 0;
hsb->part = -1;
hsb->session = -1;
} else if (!strcmp(this_char, "type") && value) {
if (strlen(value) != 4)
return 0;
- hsb->s_type = *(u32 *)value;
+ memcpy(&hsb->s_type, value, 4);
} else if (!strcmp(this_char, "creator") && value) {
if (strlen(value) != 4)
return 0;
- hsb->s_creator = *(u32 *)value;
+ memcpy(&hsb->s_creator, value, 4);
/* Boolean-valued options */
} else if (!strcmp(this_char, "quiet")) {
if (value)