Module Name:    src
Committed By:   christos
Date:           Mon Apr 19 14:07:36 UTC 2021

Modified Files:
        src/crypto/external/bsd/openssh: openssh2netbsd

Log Message:
Force user to specify source dir. Too dangerous to run in random places.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/crypto/external/bsd/openssh/openssh2netbsd

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/crypto/external/bsd/openssh/openssh2netbsd
diff -u src/crypto/external/bsd/openssh/openssh2netbsd:1.3 src/crypto/external/bsd/openssh/openssh2netbsd:1.4
--- src/crypto/external/bsd/openssh/openssh2netbsd:1.3	Fri Dec  4 13:42:49 2020
+++ src/crypto/external/bsd/openssh/openssh2netbsd	Mon Apr 19 10:07:36 2021
@@ -1,6 +1,6 @@
 #! /bin/sh
 #
-#	$NetBSD: openssh2netbsd,v 1.3 2020/12/04 18:42:49 christos Exp $
+#	$NetBSD: openssh2netbsd,v 1.4 2021/04/19 14:07:36 christos Exp $
 #
 # Copyright (c) 2001 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -28,6 +28,14 @@
 #
 # openssh2netbsd:  convert a openssh source tree into netbsd openssh tree
 
+if [ -z "$1" ]; then
+	echo "Usage: $0 <dir>" 1>&2
+	exit 1
+fi
+
+set -e
+cd "$1"
+
 ### Remove CVS
 find . -name CVS -print | xargs rm -r
 

Reply via email to