diff options
author | Florent Thoumie <flz@FreeBSD.org> | 2005-04-12 09:06:25 +0000 |
---|---|---|
committer | Florent Thoumie <flz@FreeBSD.org> | 2005-04-12 09:06:25 +0000 |
commit | 84dee8dde88b73b2e13dba2a7e117655103732f0 (patch) | |
tree | af57ee5943fc53988e7e936954a943ccbdff1b07 /security/cfs/files/patch-cfssh | |
parent | Fix and document insecure temporary file handling in portupgrade. (diff) |
- 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)
Notes
Notes:
svn path=/head/; revision=133129
Diffstat (limited to 'security/cfs/files/patch-cfssh')
-rw-r--r-- | security/cfs/files/patch-cfssh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/security/cfs/files/patch-cfssh b/security/cfs/files/patch-cfssh new file mode 100644 index 000000000000..9704ba6f7419 --- /dev/null +++ b/security/cfs/files/patch-cfssh @@ -0,0 +1,25 @@ + +$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 |