Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Dec 5 08:55:44 CET 2017 on sn-devel-144
{
tmpfile=$PREFIX/smbclient_interactive_prompt_commands
+ saved_TZ="$TZ"
+ TZ=UTC
+ export TZ
+
cat > $tmpfile <<EOF
del utimes_test
put ${SMBCLIENT} utimes_test
out=`eval $cmd`
ret=$?
+ if [ -n "$SAVED_TZ" ] ; then
+ export TZ="$SAVED_TZ"
+ else
+ unset TZ
+ fi
+
if [ $ret != 0 ] ; then
echo "$out"
echo "failed utimes test with output $ret"