X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/distorted-keys/blobdiff_plain/c47f2aba7d705252c660ba1ad0931fbb93122d80..fef0a02f50f6573ac84ee4ba3f83d9cd9eb7ae96:/cryptop.in diff --git a/cryptop.in b/cryptop.in index 3efb554..75a553b 100755 --- a/cryptop.in +++ b/cryptop.in @@ -31,19 +31,10 @@ export ETC KEYS KEYSLIB . "$KEYSLIB"/keyfunc.sh -usage="usage: $quis COMMAND [ARGUMENTS ...]" +usage="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 +runas @user@ cryptop "$@" ## Parse options. while getopts "hv" opt; do