cryptop.in, keyfunc.sh.in: Move userv variable setup into keyfunc.sh.
[distorted-keys] / cryptop.in
index 3efb554..7b38a0a 100755 (executable)
@@ -34,17 +34,6 @@ export ETC KEYS KEYSLIB
 usage="usage: $quis COMMAND [ARGUMENTS ...]"
 prefix=cryptop
 
-## Fake up caller credentials if not called via userv.
-case "${USERV_USER+t}" in
-  t) ;;
-  *) USERV_USER=${LOGNAME-${USER-$(id -un)}} USERV_UID=$(id -u) ;;
-esac
-case "${USERV_GROUP+t}" in
-  t) ;;
-  *) USERV_GROUP=$(id -Gn) USERV_GID=$(id -gn) ;;
-esac
-export USERV_USER USERV_UID USERV_GROUP USERV_GID
-
 ## Parse options.
 while getopts "hv" opt; do
   case "$opt" in