From 6e33560d010e71bfb262580273af88ed196ca915 Mon Sep 17 00:00:00 2001 From: Matthew Connelly Date: Mon, 23 Feb 2015 23:37:56 +0000 Subject: [PATCH] fixed locale bug in wdns --- wdns | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wdns b/wdns index e041127..7c13419 100755 --- a/wdns +++ b/wdns @@ -1,6 +1,6 @@ #TODO: Make the creation and management of reverse zones easier. #TODO: Make the 'zones' file easier to manage. Automate creation, editing and removal of entries. -RAND=$(cat /dev/urandom|tr -cd "[:alnum:]"|head -c 8) +RAND=$(LC_CTYPE=C;cat /dev/urandom|tr -cd "[:alnum:]"|head -c 8) FILETOEDIT="" ORIGDIR="/usr/local/etc/namedb" SUBDIR=""