Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix up stdin handling | Nathan Straz | 2013-09-11 | 1 | -6/+18 |
| | |||||
* | Close both ends of the pipes so we don't leak file descriptors | Nathan Straz | 2013-09-11 | 1 | -0/+3 |
| | |||||
* | Clean up memory leaks and uninitialized variables in qarshd | Nathan Straz | 2013-09-11 | 1 | -0/+5 |
| | |||||
* | Only log debug entries if the debug flag is set. | Nathan Straz | 2013-09-11 | 1 | -2/+2 |
| | |||||
* | Remove complicated remote file descriptor code | Nathan Straz | 2013-09-11 | 1 | -27/+19 |
| | | | | | | | | Only handle one file transfer at a time so we don't need an array to track multiple transfers or know the remote's fd number. Loop in recv_packet until we read a whole packet. | ||||
* | Get commands running over one socket | Nathan Straz | 2013-09-11 | 1 | -51/+203 |
| | | | | Added a new packet to limit data sent from the other side. | ||||
* | Add option to pause at startup | Nathan Straz | 2013-09-11 | 1 | -5/+10 |
| | | | | | | This allows us to attach gdb before anything interesting happens. Use the command 'signal 14' to get the process running again. | ||||
* | Get qacp remote to local working | Nathan Straz | 2013-09-11 | 1 | -24/+35 |
| | |||||
* | Get qacp local to remote working on main socket | Nathan Straz | 2013-09-11 | 1 | -72/+65 |
| | | | | | | | | | | I removed the buffering layer from recv_packet because it made the logic too complex around the pselect in qarshd. Now only read as much as needed to get each packet. qarshd adds an array for remote file descriptors which is only a stub for now. This needs to be expanded to allow multiple file transfers at the same time for runcmd. | ||||
* | Send all server side error messages to stderr | Nathan Straz | 2013-09-11 | 1 | -1/+1 |
| | | | | This should get sent to the journal or syslog | ||||
* | Restore original sigmask before exec'ing child | Nathan Straz | 2012-07-19 | 1 | -1/+3 |
| | |||||
* | First crack at ipv6/ipv4 agnostic qarsh/qacp. | Dean Jansa | 2010-09-28 | 1 | -6/+13 |
| | |||||
* | Set child_pid to 0 after child returns | Nathan Straz | 2010-06-03 | 1 | -0/+1 |
| | | | | This is mostly for clarity while debugging qarshd. | ||||
* | Handle growing files better in qacp | Nathan Straz | 2009-09-14 | 1 | -3/+19 |
| | | | | | | Cache the results from the rstat packet and use that file size during the following sendfile so we don't send more than qacp is expecting. This should allow us to qacp root@host:/var/log/messages | ||||
* | Fix up copyright dates. | Nate Straz | 2008-09-23 | 1 | -1/+1 |
| | |||||
* | Don't print out the debug syslog messages unless you also use the -d option. | Nate Straz | 2008-09-23 | 1 | -3/+8 |
| | | | | For those that can't configure syslog properly while debugging other things. | ||||
* | Nate made a good point, we should not fail if we can't chdir. ssh warns, ↵ | Dean Jansa | 2008-09-23 | 1 | -5/+1 |
| | | | | but lets you in. Don't bother checking the return of chdir(). | ||||
* | chdir() to users home dir | Dean Jansa | 2008-09-23 | 1 | -0/+8 |
| | |||||
* | Cast off_t variables to long long int when printing so we don't get the | Nate Straz | 2008-09-23 | 1 | -5/+7 |
| | | | | | | | | ugly warnings. We should always be compiling with 64-bit off_t's so this should not be a problem. Change nread and nwrote back to ssize_t's since that is what read and write return. nleft remains an off_t because we initialize to stat.st_size. | ||||
* | Use off_t instead of size_t so we can transfer files larger than 2GB. | Nate Straz | 2008-09-23 | 1 | -9/+10 |
| | | | | | | I changed all formats from %zd to %lld, but this adds a lot of warnings because off_t isn't the same as long long int to the compiler. I don't know if there is a way to avoid the warnings on all platforms. | ||||
* | Add copyright notices and GPL header | Nate Straz | 2008-09-23 | 1 | -1/+19 |
| | |||||
* | Quiet down the logging a bit. | Nate Straz | 2008-09-23 | 1 | -1/+1 |
| | |||||
* | Merge qarsh revisions 1727:1738 from sistina-test branch djansa-qarsh. | Nate Straz | 2008-09-23 | 1 | -6/+56 |
| | |||||
* | Flatten the qarsh tree. | Nate Straz | 2008-09-23 | 1 | -0/+315 |