From 2e879da890a4287dd52eab17938d227da7af253a Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Wed, 22 Mar 2017 11:15:49 -0400 Subject: ds-identify: fix bug where filename expansion was left on. The script is written to have the protection of disabling filename expansion (set -f) and explicitly enabling expansion when needed. However, the check_config function failed to disable it after enabling. --- tools/ds-identify | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/ds-identify') diff --git a/tools/ds-identify b/tools/ds-identify index e138d780..6f1e983d 100755 --- a/tools/ds-identify +++ b/tools/ds-identify @@ -473,7 +473,7 @@ check_config() { files="$*" fi shift - set +f; set -- $files; set +f; + set +f; set -- $files; set -f; if [ "$1" = "$files" -a ! -f "$1" ]; then return 1 fi -- cgit v1.2.3