From: Roy Marples Date: Tue, 13 Jun 2017 15:07:46 +0000 (+0100) Subject: Remove unused valid_path() function. X-Git-Tag: v7.0.0-rc2~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ad2111ccaad329db5a35948fa80019486fd1696;p=thirdparty%2Fdhcpcd.git Remove unused valid_path() function. Thanks to Robert Elz. --- diff --git a/hooks/dhcpcd-run-hooks.in b/hooks/dhcpcd-run-hooks.in index 31ff6a80..076ffb2b 100644 --- a/hooks/dhcpcd-run-hooks.in +++ b/hooks/dhcpcd-run-hooks.in @@ -229,16 +229,6 @@ valid_domainname_list() return 0 } -# Check for a valid path -valid_path() -{ - - case "$@" in - *[![:alnum:]#%+-_:\.,@~\\/\[\]=\ ]*) return 1;; - esac - return 0 -} - # With the advent of alternative init systems, it's possible to have # more than one installed. So we need to try and guess what one we're # using unless overriden by configure.