1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

oss-fuzz: Update build script to be compatible with rpm distros

The /etc/default/locale file does not exists in the rpm family distros
so the do_build.sh script failed with:

./lib/fuzzing/oss-fuzz/do_build.sh: line 31: /etc/default/locale: No
such file or directory

Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: David Mulder <dmulder@samba.org>

Autobuild-User(master): Samuel Cabrero <scabrero@samba.org>
Autobuild-Date(master): Tue Apr  6 15:54:54 UTC 2021 on sn-devel-184
This commit is contained in:
Samuel Cabrero 2021-03-30 16:17:31 +02:00 committed by Samuel Cabrero
parent 11aac9d043
commit 49a0f6170b

View File

@ -28,7 +28,11 @@ set -u
# It is critical that this script, just as the rest of Samba's GitLab
# CI docker has LANG set to en_US.utf8 (oss-fuzz fails to set this)
. /etc/default/locale
if [ -f /etc/default/locale ]; then
. /etc/default/locale
elif [ -f /etc/locale.conf ]; then
. /etc/locale.conf
fi
export LANG
export LC_ALL