summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bug-fix release 1.1.1HEADurshd-1.1.1masterRoland Hieber2017-07-252-1/+8
| | | | Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
* urshd: fix error handling in writeRoland Hieber2017-07-251-3/+3
| | | | | | | | The broken error handling had the effect that no command was ever executed on the target, with only a message "Unable to write: Success" in the syslog. Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
* release version 1.1.0urshd-1.1.0Roland Hieber2017-07-252-3/+3
| | | | Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
* add CHANGES.mdRoland Hieber2017-07-252-0/+34
| | | | Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
* add README.mdRoland Hieber2017-07-252-0/+69
| | | | Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
* urshd: remove dead codeRoland Hieber2017-07-251-12/+0
| | | | Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
* urshd: fix indentationRoland Hieber2017-07-251-82/+83
| | | | | | | This changes only whitespace, and adds a vim modeline to pin down the code style. Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
* urshd: IPv6 support with (slightly) more modern networking codeRoland Hieber2017-07-251-36/+47
| | | | | | | | | | | | | | | | | | | We support dual-stack usage by unsetting the IPV6_V6ONLY option, so IPv4 clients get mapped to IPv6 (IPv4-Mapped IPv6 Address, RFC 4249, like in "Connection received from ::ffff:192.168.123.1"). This way we can use struct sockaddr_in6 throughout the code without the need to differentiate between sockaddr_in and sockaddr_in6 all the time. The magic of selecting the right protocol, port, etc. is now done by getaddrinfo instead of getservbyname. The port parameter of mainloop() is not used anyway, remove it. While we're at it, also improve setsockopt error handling. I'm really not sure about the hunk starting at line 496 ("setsockopt IP_OPTIONS NULL"). See the comment there, feedback is welcome. Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
* urshd: prevent warnings when building debug versionRoland Hieber2017-07-251-12/+21
| | | | | | | | | | | | | | | | | | | | | | | | | When building on GCC 5.4.0 with --enable-debug, -Werror is in effect: make[2]: Entering directory 'urshd-1.0.2/src' arm-v7a-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../include -Wall -Wsign-compare -Wfloat-equal -Wformat-security -Werror -g -O1 -MT urshd.o -MD -MP -MF .deps/urshd.Tpo -c -o urshd.o urshd.c urshd.c: In function 'mainloop': urshd.c:582:1: error: no return statement in function returning non-void [-Werror=return-type] urshd.c:541:3: error: ignoring return value of 'daemon', declared with attribute warn_unused_result [-Werror=unused-result] urshd.c: In function 'doit': urshd.c:340:3: error: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Werror=unused-result] urshd.c:352:2: error: ignoring return value of 'write', declared with attribute warn_unused_result [-Werror=unused-result] urshd.c: In function 'error': urshd.c:203:5: error: ignoring return value of 'write', declared with attribute warn_unused_result [-Werror=unused-result] urshd.c: In function 'stderr_parent': urshd.c:277:3: error: ignoring return value of 'write', declared with attribute warn_unused_result [-Werror=unused-result] cc1: all warnings being treated as errors GNUmakefile:231: recipe for target 'urshd.o' failed make[2]: *** [urshd.o] Error 1 make[2]: Leaving directory 'urshd-1.0.2/src' Use this opportunity to improve error handling. Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
* configure: build debug version with -ggdb -OgRoland Hieber2017-07-251-1/+1
| | | | | | | | | -Og builds with minimal optimization, just enough so it does not obstruct debugging. -ggdb writes debugging symbols in the most verbose format that gdb can read. Both should result in an improved debugging experience. Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
* add license to man pages to fulfil its conditionsRoland Hieber2017-07-252-0/+83
| | | | Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
* add ourselves as copyright holder, rewrap license where necessaryRoland Hieber2017-07-253-45/+48
| | | | Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
* add gitignore for autogenerated filesRoland Hieber2017-07-251-0/+11
| | | | Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
* Note: repository was converted from Subversion to GitRoland Hieber2017-07-250-0/+0
| | | | Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
* * ursh.c:Marc Kleine-Budde2009-03-091-48/+46
| | | | | Lindent
* * doc/ursh.1:Marc Kleine-Budde2009-03-091-0/+182
| | | | | added from netkit-rsh_0.17.orig.tar.gz
* * doc/GNUmakefile.am:Marc Kleine-Budde2009-03-091-0/+3
| | | | | cleanup GNUmakefile.in
* * src/ursh.c:Marc Kleine-Budde2009-03-091-0/+342
| | | | | added, from netkit-rsh_0.17.orig.tar.gz
* * configure.ac:Marc Kleine-Budde2008-08-251-1/+1
| | | | | version bump to 1.0.2
* * src/urshd.c:Marc Kleine-Budde2008-08-251-1/+1
| | | | | use sysconf rather than hardcoded value for ARG_MAX
* * src/urshd.c:Marc Kleine-Budde2008-06-271-3/+13
| | | | | add daemonisation
* * src/urshd.c:Marc Kleine-Budde2008-06-271-42/+57
| | | | | | ignore SIGCHLD, so no more defunct childrem cleanups
* * configure.ac:Marc Kleine-Budde2008-06-271-47/+35
| | | | | cleanups, version bump to 1.0.1
* add manpageAleksey Demakov2008-05-204-1/+65
|
* improve usage info; bail out if not rootAleksey Demakov2008-05-161-21/+71
|
* remove rhosts, PAM, client host and port checks; some code cleanup and ↵Aleksey Demakov2008-05-151-259/+88
| | | | cosmetic changes
* * configure.ac: cleanup, we don't need libtool if we don't build a libraryRobert Schwebel2008-03-141-33/+15
|
* * m4: add placeholder fileRobert Schwebel2008-03-141-0/+0
|
* * autogen: removed -Wall; it is so noisy that we miss the real outputRobert Schwebel2008-03-142-3/+3
|
* * initial version of urshdMichael Olbrich2008-03-147-0/+966
|
* (no commit message)Robert Schwebel2008-03-140-0/+0