#!/usr/bin/bash

set -ex

if [ "$RPM_PACKAGE_VERSION" = "3.0.5" ]; then
  # https://github.com/InfrastructureServices/vsftpd/pull/6
  /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .clang --fuzz=0 < /usr/lib/rpm/clang/vsftpd-0001-Fix-Wdeprecated-non-prototype-warning-with-clang.patch
fi
