From e6f7491fb2e7a355236e78e853f8b95e47c9fd1e Mon Sep 17 00:00:00 2001 From: Rémy Oudompheng Date: Sun, 19 Jun 2011 23:36:17 +0200 Subject: Correctly create STATE_DIR before creating WPA configuration file --- src/8021x | 1 + 1 file changed, 1 insertion(+) (limited to 'src/8021x') diff --git a/src/8021x b/src/8021x index cbc8588..267a358 100644 --- a/src/8021x +++ b/src/8021x @@ -167,6 +167,7 @@ make_wpa_config_file() { local WPA_CONF="$STATE_DIR/wpa.${interface}" # substitute spaces out # make empty tmp dir with correct permissions, rename it + check_make_state_dir rm -rf "$WPA_CONF" mv -f "$(mktemp -d --tmpdir=$STATE_DIR)" "$WPA_CONF" || return 1 echo "ctrl_interface=/run/wpa_supplicant" >> "$WPA_CONF/wpa.conf" # we know $WPA_CONF now has no spaces, but it may have other nasty chars, so still needs to be quoted -- cgit v1.2.3-24-g4f1b