head	1.6;
access;
symbols
	RELEASE_5_4_0:1.5
	RELEASE_4_11_0:1.5
	RELEASE_5_3_0:1.5
	RELEASE_4_10_0:1.4
	RELEASE_5_2_1:1.2
	RELEASE_5_2_0:1.2
	RELEASE_4_9_0:1.2
	RELEASE_5_1_0:1.2
	RELEASE_4_8_0:1.2
	RELEASE_5_0_0:1.2
	RELEASE_4_7_0:1.2
	RELEASE_4_6_2:1.2
	RELEASE_4_6_1:1.2
	RELEASE_4_6_0:1.2
	RELEASE_5_0_DP1:1.2
	RELEASE_4_5_0:1.2
	RELEASE_4_4_0:1.2
	RELEASE_4_3_0:1.2
	RELEASE_4_2_0:1.2
	RELEASE_4_1_1:1.2
	RELEASE_4_1_0:1.2
	RELEASE_3_5_0:1.2
	RELEASE_4_0_0:1.1
	RELEASE_3_4_0:1.1
	RELEASE_3_3_0:1.1
	RELEASE_3_2_0:1.1
	RELEASE_3_1_0:1.1
	RELEASE_2_2_8:1.1
	RELEASE_3_0_0:1.1;
locks; strict;
comment	@# @;


1.6
date	2005.04.12.09.06.25;	author flz;	state dead;
branches;
next	1.5;

1.5
date	2004.04.29.03.26.11;	author green;	state Exp;
branches;
next	1.4;

1.4
date	2004.04.23.15.18.28;	author green;	state Exp;
branches;
next	1.3;

1.3
date	2004.04.22.07.27.00;	author green;	state Exp;
branches;
next	1.2;

1.2
date	2000.05.23.01.02.39;	author green;	state Exp;
branches;
next	1.1;

1.1
date	98.09.21.01.03.10;	author obrien;	state Exp;
branches;
next	;


desc
@@


1.6
log
@- Merge and split existing patch-a[a-f] files.
- Fix types issues on 64-bits architectures.

PR:		ports/75878
Submitted by:	Ville-Pertti Keinonen <will@@exomi.com>
Approved by:	maintainer timeout (3 months)
@
text
@--- 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
@


1.5
log
@Reinstate changes made during ports freeze, correcting "PORTREVESION"
so that the version is actually bumped.
@
text
@@


1.4
log
@Committing stuff during ports freezes is generally frowned upon.
@
text
@d1 3
a3 3
--- cfssh.orig	Mon May 22 20:56:00 2000
+++ cfssh	Mon May 22 20:56:11 2000
@@@@ -1,4 +1,4 @@@@
d9 14
@


1.3
log
@Revamp cfssh(1) so that it creates the attach points randomly again.
It used $RANDOM when it was a ksh script, but here it had always
been broken because ash (/bin/sh) doesn't have it.

Also, make the cfssh manpage refer to itself as cfssh instead of ssh.

Submitted by:	Martin Kammerhofer <dada@@sbox.tugraz.at>
PR:		65620
@
text
@d1 3
a3 3
--- cfssh.orig	Wed Dec  3 16:21:40 1997
+++ cfssh	Tue Apr 20 19:45:17 2004
@@@@ -1,15 +1,16 @@@@
a8 14
 	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
@


1.2
log
@Update to cfs version 1.4.0 beta 2.

Submitted by:	Ollivier Robert <roberto@@FreeBSD.org>
@
text
@d1 3
a3 3
--- cfssh.orig	Mon May 22 20:56:00 2000
+++ cfssh	Mon May 22 20:56:11 2000
@@@@ -1,4 +1,4 @@@@
d9 14
@


1.1
log
@* Support blowfish encription.
* Install the cfs's ssh as cfssh.
@
text
@d1 8
a8 21
--- ssh.1.orig	Sat Jan  1 04:35:00 1994
+++ ssh.1	Sun Sep 20 17:59:46 1998
@@@@ -1,14 +1,14 @@@@
 .TH SSH 1 ""
 .SH NAME
-ssh - (somewhat) secure CFS shell
+cfssh - (somewhat) secure CFS shell
 .SH SYNOPSIS
-.B ssh
+.B cfssh
 \fIdirectory\fP
 .SH DESCRIPTION
-\fBssh\fP uses \fBcattach\fP(1) to associate the encrypted
+\fBcfssh\fP uses \fBcattach\fP(1) to associate the encrypted
 \fIdirectory\fP (previously created with \fBcmkdir\fP(1)) with a
 randomly selected name.  Once the correct passphrase is provided,
-\fBssh\fP invokes a new shell with the random directory in /crypt as its
+\fBcfssh\fP invokes a new shell with the random directory in /crypt as its
 working directory.
 When the shell exits, the temporary attach name is deleted with
 cdetach(1).
@

