This commit is contained in:
Shikhar Bhushan
2010-03-21 01:31:41 +01:00
parent 53d8d548cf
commit 7a2850d760
4 changed files with 3 additions and 5 deletions

View File

@@ -35,7 +35,7 @@ public abstract class AbstractAuthMethod
/** {@link AuthParams} useful for building request. */ /** {@link AuthParams} useful for building request. */
protected AuthParams params; protected AuthParams params;
/** Create with the {@code name} of this authentication method. */ /** @param name the {@code name} of this authentication method. */
protected AbstractAuthMethod(String name) { protected AbstractAuthMethod(String name) {
this.name = name; this.name = name;
} }

View File

@@ -43,8 +43,7 @@ public class AuthHostbased
protected SSHPacket buildReq() protected SSHPacket buildReq()
throws UserAuthException { throws UserAuthException {
SSHPacket req = putPubKey(super.buildReq()); SSHPacket req = putPubKey(super.buildReq());
req.putString(hostname == null ? params.getTransport().getRemoteHost() : hostname) // req.putString(hostname == null ? params.getTransport().getRemoteHost() : hostname).putString(hostuser);
.putString(hostuser);
return putSig(req); return putSig(req);
} }

View File

@@ -57,7 +57,7 @@ public interface ModeGetter {
int getPermissions(File f) int getPermissions(File f)
throws IOException; throws IOException;
/** Whether this implementation can provide mtime and atime information. */ /** @return whether this implementation can provide mtime and atime information. */
boolean preservesTimes(); boolean preservesTimes();
} }

View File

@@ -162,7 +162,6 @@ public final class SCPDownloadClient
signal("ACK: D"); signal("ACK: D");
do { do {
;
} while (!process(null, readMessage(), f)); } while (!process(null, readMessage(), f));
signal("ACK: E"); signal("ACK: E");