84dee8dde8
- Fix types issues on 64-bits architectures. PR: ports/75878 Submitted by: Ville-Pertti Keinonen <will@exomi.com> Approved by: maintainer timeout (3 months)
26 lines
435 B
Plaintext
26 lines
435 B
Plaintext
|
|
$FreeBSD$
|
|
|
|
--- cfssh.orig
|
|
+++ cfssh
|
|
@@ -1,15 +1,16 @@
|
|
-#!/bin/ksh
|
|
+#!/bin/sh
|
|
|
|
if [ -z "$1" ]; then
|
|
echo Usage: cfssh directory
|
|
exit
|
|
fi
|
|
export PS1="crypto:`basename $1`$ "
|
|
-D=.$RANDOM.$RANDOM
|
|
+set -- $1 `dd if=/dev/urandom bs=8 count=1 2>/dev/null | od -D`
|
|
+D=.$3.$4
|
|
cattach $1 $D || exit 1
|
|
echo "Directory is /crypt/$D"
|
|
cd /crypt/$D
|
|
-D=" "
|
|
+D=" "
|
|
CWD=`/bin/pwd`
|
|
D=`basename $CWD`
|
|
PWD=$CWD
|