summaryrefslogtreecommitdiffstats
path: root/main/djbdns/tinydns.initd
diff options
context:
space:
mode:
Diffstat (limited to 'main/djbdns/tinydns.initd')
-rwxr-xr-xmain/djbdns/tinydns.initd4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/djbdns/tinydns.initd b/main/djbdns/tinydns.initd
index ab15ffe37..8dfc53930 100755
--- a/main/djbdns/tinydns.initd
+++ b/main/djbdns/tinydns.initd
@@ -29,8 +29,8 @@ fi
# Main program
reload() {
local rc opwd="$opwd"
- UID=$( grep tinydns /etc/passwd | cut -f3 -d: )
- GID=$( grep tinydns /etc/group | cut -f3 -d: )
+ UID=$(id -u tinydns)
+ GID=$(id -g tinydns)
# Create the $ROOT directory if necessary
if [ ! -d "$ROOT" ]; then