Ticket #13530: link_permissions.patch

File link_permissions.patch, 820 bytes (added by mjw, 3 years ago)

proposed fix.

  • src/system/kernel/fs/vfs_boot.cpp

    diff --git a/src/system/kernel/fs/vfs_boot.cpp b/src/system/kernel/fs/vfs_boot.cpp
    index f4f1102..3e5a9d9 100644
    a b vfs_bootstrap_file_systems(void)  
    455455
    456456    for (int32 i = 0; sPredefinedLinks[i].path != NULL; i++) {
    457457        _kern_create_symlink(-1, sPredefinedLinks[i].path,
    458             sPredefinedLinks[i].target, 0);
     458            sPredefinedLinks[i].target, 0777);
    459459            // we don't care if it will succeed or not
    460460    }
    461461
    vfs_mount_boot_file_system(kernel_args* args)  
    517517        char path[B_FILE_NAME_LENGTH + 1];
    518518        snprintf(path, sizeof(path), "/%s", info.volume_name);
    519519
    520         _kern_create_symlink(-1, path, "/boot", 0);
     520        _kern_create_symlink(-1, path, "/boot", 0777);
    521521    }
    522522
    523523    // If we're booting off a packaged system, mount packagefs.