strange scp behavior

Roberto A. Foglietta roberto.foglietta at gmail.com
Tue Aug 28 17:48:55 WST 2007


Hi to all folks,

 scp works but dbclient used as sco don't, I tried to figure out why...
...but what I found make me fool. it seems to me dbclient try to
resolve the first parameter even when the host is a second one.
However fails in both where OpenSSH scp works pretty well. Thanks

 foglietr at eemd2364170:~/Desktop/dropbear-0.50$ strace ./dbclient pippo
foglietr at gexs22:/tmp 2>&1 | grep pippo
execve("./dbclient", ["./dbclient", "pippo", "foglietr at gexs22:/tmp"],
[/* 37 vars */]) = 0
send(3, "R4\1\0\0\1\0\0\0\0\0\0\5pippo\2it\2eu\10ericsso"..., 41,
MSG_NOSIGNAL) = 41
recvfrom(3, "R4\201\203\0\1\0\0\0\1\0\0\5pippo\2it\2eu\10ericsso"...,
1024, 0, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("141.137.127.1")}, [16]) = 109

foglietr at eemd2364170:~/Desktop/dropbear-0.49/_install/bin$ strace
./dbclient dbclient foglietr at gexs22:/tmp 2>&1 | grep dbclient
execve("./dbclient", ["./dbclient", "dbclient",
"foglietr at gexs22:/tmp"], [/* 37 vars */]) = 0
send(3, "#t\1\0\0\1\0\0\0\0\0\0\10dbclient\2it\2eu\10eric"..., 44,
MSG_NOSIGNAL) = 44
recvfrom(3, "#t\201\203\0\1\0\0\0\1\0\0\10dbclient\2it\2eu\10eric"...,
1024, 0, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("141.137.127.1")}, [16]) = 112
write(2, "./dbclient: exited: Error resolv"..., 63./dbclient: exited:
Error resolving: Name or service not known

foglietr at eemd2364170:~/Desktop/dropbear-0.48.1/_install/bin$ strace
./dbclient dbclient foglietr at gexs22:/tmp 2>&1 | grep dbclient
execve("./dbclient", ["./dbclient", "dbclient",
"foglietr at gexs22:/tmp"], [/* 37 vars */]) = 0
send(3, "&k\1\0\0\1\0\0\0\0\0\0\10dbclient\2it\2eu\10eric"..., 44,
MSG_NOSIGNAL) = 44
recvfrom(3, "&k\201\203\0\1\0\0\0\1\0\0\10dbclient\2it\2eu\10eric"...,
1024, 0, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("141.137.127.1")}, [16]) = 112
write(2, "./dbclient: exited: Error resolv"..., 63./dbclient: exited:
Error resolving: Name or service not known

 Cheers,
-- 
/roberto



More information about the Dropbear mailing list