RES_CNAME=`$DO_TIMEOUT gnunet-gns --raw -u $TEST_DOMAIN_PLUS -t A -c test_gns_lookup.conf`
RES_CNAME_RAW=`$DO_TIMEOUT gnunet-gns --raw -u $TEST_DOMAIN_PLUS -t CNAME -c test_gns_lookup.conf`
RES_CNAME_DNS=`$DO_TIMEOUT gnunet-gns --raw -u $TEST_DOMAIN_DNS -t A -c test_gns_lookup.conf`
+echo NOW
+gnunet-gns --raw -u $TEST_DOMAIN_DNS -t A -c test_gns_lookup.conf
+echo WON
TESTEGOZONE=`gnunet-identity -c test_gns_lookup.conf -d | awk '{print $3}'`
gnunet-namestore -p -z $MY_EGO -d -n $TEST_RECORD_NAME_DNS -t CNAME -V $TEST_RECORD_CNAME_DNS -e never -c test_gns_lookup.conf
gnunet-namestore -p -z $MY_EGO -d -n $TEST_RECORD_NAME_PLUS -t CNAME -V $TEST_RECORD_CNAME_PLUS -e never -c test_gns_lookup.conf
echo "PASS: IP resolution from DNS"
exit 0
else
- echo "FAIL: IP resolution from DNS, got $RES_IP, expected $TEST_IP_DNS."
+ echo "FAIL: IP resolution from DNS, got $RES_CNAME_DNS, expected $TEST_IP_DNS."
exit 1
fi
GNUNET_DISK_file_close (fh);
return -1;
}
- if (bytes_read > (off_t) SIZE_MAX)
+ if (((unsigned long long) bytes_read) > (unsigned long long) SIZE_MAX)
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"/etc/resolv.conf file too large to mmap. "
GNUNET_DISK_file_close (fh);
return;
}
- if (bytes_read > (off_t) SIZE_MAX)
+ if (((unsigned long long) bytes_read) > (unsigned long long) SIZE_MAX)
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"/etc/hosts file too large to mmap. "