From owner-freebsd-stable@FreeBSD.ORG Fri Feb 28 23:10:49 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E2ABA23A for ; Fri, 28 Feb 2014 23:10:49 +0000 (UTC) Received: from mail-qa0-x234.google.com (mail-qa0-x234.google.com [IPv6:2607:f8b0:400d:c00::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 93A3C139B for ; Fri, 28 Feb 2014 23:10:49 +0000 (UTC) Received: by mail-qa0-f52.google.com with SMTP id m5so1368197qaj.11 for ; Fri, 28 Feb 2014 15:10:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=aNdBg3NGkZtJ4a32NYO4PyGReTwwHuYRMlFPWBAHK84=; b=r9MyuvcJFqXpDn4Moy8C2kwntqxVECMAjTc1YcTS6VyhO5V0Jv2BF+nzxt8K5Z0ESp PV8W44HdakmjSko0SxWcNTjFLo6/m9L7A50nn3B4IeNozZsh/oc+p2uROotoGmASo12W FHAfXAxisiEWnkKqjDxLxtrSrKwE1D0GQLjvY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-type; bh=aNdBg3NGkZtJ4a32NYO4PyGReTwwHuYRMlFPWBAHK84=; b=DUru/kCHcRVD8priDNpnsX9ZmWP4cp6uqM3wn1RexjQws1MINOD3IBtMfvUTfM7YAy ilWd3djejtJ7XayV8ModK7ANWA4B2mw4XNxUap0H/silT85KwXnsecs12qIRhjtD5Otr MwxJFhDiQ0vnSIdYZYnpqixmiaBAbWhgy4Vj9yN8Hzjqohv0Y/9Kwa0cSy86n3lf8b/v fy6iWMqstk9/vVBNRp9Apqdz33I7kEQMNVJp7xU35C4DLYEAmxQ13S5l27CRq4pVTkLu NfQwHDq8mPzJh9evoBny6zElkOOIlH8TrQ780DRSA6xLwoWbkAhE4RfT91YwtBi+E8d1 i7AQ== X-Gm-Message-State: ALoCoQn5R3/bWPPfKgrtaW9XkrOPWSO2xJx65YgCqMn8XpW6X77Eq4dNSRBfAfi5g4H/Q95Z31uz X-Received: by 10.229.119.73 with SMTP id y9mr7490911qcq.18.1393629048717; Fri, 28 Feb 2014 15:10:48 -0800 (PST) MIME-Version: 1.0 Sender: lists@eitanadler.com Received: by 10.96.147.225 with HTTP; Fri, 28 Feb 2014 15:10:18 -0800 (PST) In-Reply-To: References: <2cba8fd9cc51dedc1bd5e127046f4ab7@dweimer.net> <1393618827.9046.89104957.4A974C56@webmail.messagingengine.com> <1393625741.9928.89141917.3B723B0F@webmail.messagingengine.com> From: Eitan Adler Date: Fri, 28 Feb 2014 18:10:18 -0500 X-Google-Sender-Auth: qIpsxv5KQ131DYcB09Q8BPZWLiA Message-ID: Subject: Re: ssh-copy-id To: Mark Felder Content-Type: text/plain; charset=UTF-8 Cc: freebsd-stable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Feb 2014 23:10:49 -0000 On 28 February 2014 18:08, Eitan Adler wrote: > On 28 February 2014 17:15, Mark Felder wrote: > .... > >> In my opinion, if I'm using an ssh utility and I specify "-i" flag it >> should be the private key. > > Hey all, > > Sorry about the confusion ssh-copy-id has caused you. > > Does the following patch help ? ... > @@ -64,11 +64,14 @@ options="" > > IFS=$nl > > -while getopts 'i:lo:p:' arg; do > +while getopts 'i:lo:p:v' arg; do > case $arg in > i) > hasarg="x" > - if [ -r "$OPTARG" ]; then > + if [ -r "${OPTARG}.pub" ]; then > + echo helo ^ obviously to be committed without this line ;) -- Eitan Adler Source, Ports, Doc committer Bugmeister, Ports Security teams