[Sshpass-devel] tcgetpgrp() fails in scp -> missing progress bar
Brought to you by:
thesun
From: Hans M. <han...@gm...> - 2011-03-10 07:52:22
|
Hello, "sshpass ... scp ..." doesn't display a progress bar as scp normally does. I digged in scp code and found the following: static int can_output(void) { return (getpgrp() == tcgetpgrp(STDOUT_FILENO)); } The tcgetpgrp call returns -1, if scp is called via sshpass. I tried a bit hacking in sshpass without success. Without a call of setsid() in the child fork in sshpass, the tcgetpgrp call in the child works as it should, but that fails sshpass entering the password. As I don't know how theses terminals work in much detail, I am not able to find a solution to this. I would appreciate it if someone with deeper knowledge fixes this. I also added this to the bugtracker: http://sourceforge.net/tracker/?func=detail&atid=800672&aid=3198476&group_id=156659 Best regards -- Schon gehört? GMX hat einen genialen Phishing-Filter in die Toolbar eingebaut! http://www.gmx.net/de/go/toolbar |