diff options
author | Brian Feldman <green@FreeBSD.org> | 2004-04-29 03:26:11 +0000 |
---|---|---|
committer | Brian Feldman <green@FreeBSD.org> | 2004-04-29 03:26:11 +0000 |
commit | b4855dcecf168912903fbe5a2f6ca40e8f620943 (patch) | |
tree | 6996b73fb40133aeb4c7a0d093b6d66b73427559 /security/cfs/files/patch-ac | |
parent | 6e6113910e9d7919498b1f838d4fe2860dc0d02e (diff) | |
download | ports-b4855dcecf168912903fbe5a2f6ca40e8f620943.tar.gz ports-b4855dcecf168912903fbe5a2f6ca40e8f620943.zip |
Notes
Diffstat (limited to 'security/cfs/files/patch-ac')
-rw-r--r-- | security/cfs/files/patch-ac | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/security/cfs/files/patch-ac b/security/cfs/files/patch-ac index bf63c532aede..bd3f9d95a2fa 100644 --- a/security/cfs/files/patch-ac +++ b/security/cfs/files/patch-ac @@ -1,8 +1,22 @@ ---- cfssh.orig Mon May 22 20:56:00 2000 -+++ cfssh Mon May 22 20:56:11 2000 -@@ -1,4 +1,4 @@ +--- cfssh.orig Wed Dec 3 16:21:40 1997 ++++ cfssh Tue Apr 20 19:45:17 2004 +@@ -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 |