]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
hwsim tests: Silence chown warnings
authorJohannes Berg <johannes.berg@intel.com>
Wed, 30 Oct 2013 22:16:05 +0000 (23:16 +0100)
committerJouni Malinen <j@w1.fi>
Thu, 31 Oct 2013 09:08:16 +0000 (11:08 +0200)
If running in a VM with the logs going to a host filesystem
chown isn't actually possible, silence any warnings from it.

Signed-hostap: Johannes Berg <johannes.berg@intel.com>

tests/hwsim/start.sh

index 4b425481f6e78c9f58a82bc463d52685c8d27d18..fbd3cfe74ee2159698fe3cdb2d5865f5690d25c3 100755 (executable)
@@ -65,9 +65,9 @@ done
 sudo $VALGRIND_HAPD $HAPD -ddKt$TRACE -g /var/run/hostapd-global -G $GROUP -ddKt > $LOGDIR/hostapd &
 
 sleep 1
-sudo chown $USER $LOGDIR/hwsim0.dump
+sudo chown -f $USER $LOGDIR/hwsim0.dump
 if [ "x$VALGRIND" = "xy" ]; then
-    sudo chown $USER $LOGDIR/*valgrind*
+    sudo chown -f $USER $LOGDIR/*valgrind*
 fi
 
 if [ -x $HLR_AUC_GW ]; then