comparison dropbearkey.c @ 325:0e4f225b7e07

Add -N "no remote command" dbclient option. Document -N in dbclient.1 and -P in dropbear.8
author Matt Johnston <matt@ucc.asn.au>
date Wed, 07 Jun 2006 15:01:20 +0000
parents bc7c134982df
children 454a34b2dfd1
comparison
equal deleted inserted replaced
324:bc7c134982df 325:0e4f225b7e07
319 fp = sign_key_fingerprint(buf_getptr(buf, len), len); 319 fp = sign_key_fingerprint(buf_getptr(buf, len), len);
320 320
321 /* a user@host comment is informative */ 321 /* a user@host comment is informative */
322 username = ""; 322 username = "";
323 pw = getpwuid(getuid()); 323 pw = getpwuid(getuid());
324 if (pw) 324 if (pw) {
325 {
326 username = pw->pw_name; 325 username = pw->pw_name;
327 } 326 }
328 327
329 gethostname(hostname, sizeof(hostname)); 328 gethostname(hostname, sizeof(hostname));
330 hostname[sizeof(hostname)-1] = '\0'; 329 hostname[sizeof(hostname)-1] = '\0';