Hello,

Here's a possible patch to fix this:

--- sshcommand-0~20160110.1~2795f65.orig/sshcommand
+++ sshcommand-0~20160110.1~2795f65/sshcommand
@@ -32,7 +32,7 @@ case "$1" in
   create) # sshcommand create <user> <command>
     if [[ $# -ne 3 ]]; then
       echo "Usage : sshcommand create user command"
-      exit -1
+      exit 1
     fi
     USER="$2"; COMMAND="$3"

@@ -52,7 +52,7 @@ case "$1" in
   acl-add) # sshcommand acl-add <user> <identifier>
     if [[ $# -ne 3 ]]; then
       echo "Usage : sshcommand acl-add user identifier"
-      exit -1
+      exit 1
     fi
     USER="$2"; NAME="$3"

@@ -68,7 +68,7 @@ case "$1" in

     if [[ ! "$FINGERPRINT" =~ :.* ]]; then
       echo "Invalid ssh public key"
-      exit -1
+      exit 1
     fi
     KEY_PREFIX="command=\"FINGERPRINT=$FINGERPRINT NAME=\\\"$NAME\\\" \`cat 
$USERHOME/.sshcommand\` 
\$SSH_ORIGINAL_COMMAND\",no-agent-forwarding,no-user-rc,no-X11-forwarding,no-port-forwarding"
     echo "$KEY_PREFIX $KEY" >> "$USERHOME/.ssh/authorized_keys"
@@ -78,7 +78,7 @@ case "$1" in
   acl-remove) # sshcommand acl-remove <user> <identifier>
     if [[ $# -ne 3 ]]; then
       echo "Usage : sshcommand acl-remove user identifier"
-      exit -1
+      exit 1
     fi
     USER="$2"; NAME="$3"





Best regards,


-- 
⢀⣴⠾⠻⢶⣦⠀ Fabio A. De Muzio Tobich
⣾⠁⢰⠒⠀⣿⡁ 9730 4066 E5AE FAC2 2683
⢿⡄⠘⠷⠚⠋⠀ D03D 4FB3 B4D3 7EF6 3B2E
⠈⠳⣄      GPG:    rsa4096/7EF63B2E

Attachment: signature.asc
Description: PGP signature

Reply via email to