Browse Source

use space as separator

Enrico Tassi 8 years ago
parent
commit
61f3509c99
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      smd-restricted-shell

+ 1
- 1
smd-restricted-shell View File

@@ -17,7 +17,7 @@ fi
17 17
 
18 18
 # check that SSH_ORIGINAL_COMMAND contains only
19 19
 # smd-client/smd-server
20
-C=`echo $SSH_ORIGINAL_COMMAND | cut -f 1`
20
+C=`echo $SSH_ORIGINAL_COMMAND | cut -f 1 -d ' '`
21 21
 if [ "$C" != "$WHERE/smd-client" -a "$C" != "$WHERE/smd-server" ]; then
22 22
       exit 1
23 23
 fi

Loading…
Cancel
Save