Skip to content

Instantly share code, notes, and snippets.

@xmarnic
xmarnic / ubuntu-2404-vboxfix
Created May 9, 2024 20:30
An attempt at fixing the VBox Guest additions addons error for Ubuntu Server 24.04 LTS
#!/usr/bin/bash
declare -a args
for var; do
if [ $var = '/tmp/vbox.0/VBoxGuest-common.c' ];
then
sed -i -e 's/strlcpy/strscpy/g' $var
fi
if [ $var = '/tmp/vbox.0/VBoxGuest-linux.c' ];
then
sed -i -e 's/strlcpy/strscpy/g' $var