Fix filename expansion in vsftpd_conf_migrate.sh ... again
We need to run 'shopt -s nullglob', otherwise the glob pattern will expand to itself if no matching files exist.
This commit is contained in:
parent
f2b42b7996
commit
81c7e83b2e
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: vsftpd
|
Name: vsftpd
|
||||||
Version: 3.0.3
|
Version: 3.0.3
|
||||||
Release: 23%{?dist}
|
Release: 24%{?dist}
|
||||||
Summary: Very Secure Ftp Daemon
|
Summary: Very Secure Ftp Daemon
|
||||||
|
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
@ -153,6 +153,9 @@ mkdir -p $RPM_BUILD_ROOT/%{_var}/ftp/pub
|
|||||||
%{_var}/ftp
|
%{_var}/ftp
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jun 01 2018 Ondřej Lysoněk <olysonek@redhat.com> - 3.0.3-24
|
||||||
|
- Fix filename expansion in vsftpd_conf_migrate.sh ... again
|
||||||
|
|
||||||
* Thu May 10 2018 Ondřej Lysoněk <olysonek@redhat.com> - 3.0.3-23
|
* Thu May 10 2018 Ondřej Lysoněk <olysonek@redhat.com> - 3.0.3-23
|
||||||
- Fix issues found by Coverity Scan
|
- Fix issues found by Coverity Scan
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#move old config files and symlink them
|
#move old config files and symlink them
|
||||||
#shipped with vsftpd-2.0.1-6
|
#shipped with vsftpd-2.0.1-6
|
||||||
|
shopt -s nullglob
|
||||||
PREFIX="vsftpd"
|
PREFIX="vsftpd"
|
||||||
for file in /etc/${PREFIX}.*; do
|
for file in /etc/${PREFIX}.*; do
|
||||||
if [ ! -L $file ]; then
|
if [ ! -L $file ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user