summaryrefslogtreecommitdiff
path: root/modules/ssh (unfollow)
Commit message (Expand)AuthorFilesLines
2017-04-23build: Use $(GUILD) instead of `which guild`.•••* am/guilec (GUILEC): Use $(GUILD). Signed-off-by: Artyom V. Poptsov <poptsov.artyom@gmail.com> Ludovic Courtès1-1/+1
2017-04-23libguile-ssh: Adjust port code to Guile 2.2.•••This ports Guile-SSH to the port API found in Guile 2.2. * libguile-ssh/common.h (USING_GUILE_BEFORE_2_2): New macro. * libguile-ssh/channel-type.c (channel_tag) [!USING_GUILE_BEFORE_2_2]: New definition. (read_from_channel_port, write_to_channel_port): New functions. (ptob_close): Add #if USING_GUILE_BEFORE_2_2. (guile_ssh_is_channel_p): Likewise. (equalp_channel): Condition on USING_GUILE_BEFORE_2_2. (_scm_from_channel_data): Add #if USING_GUILE_BEFORE_2_2. (_scm_to_channel_data): Likewise. (init_channel_type): Likewise. * libguile-ssh/sftp-file-type.c (sftp_file_tag) [!USING_GUILE_BEFORE_2_2]: New defintion. (read_from_sftp_file_port, write_to_sftp_file_port): New functions. (equalp_sftp_file): Condition on USING_GUILE_BEFORE_2_2. (print_sftp_file): Use 'scm_port_filename' instead of 'SCM_FILENAME'. (ptob_flush): Condition on USING_GUILE_BEFORE_2_2. (ptob_close, ptob_seek): Add #if USING_GUILE_BEFORE_2_2. (gssh_sftp_file_p): Likewise. (_scm_to_sftp_file_data, _scm_from_sftp_file): Likewise. (init_sftp_file_type): Likewise. * configure.ac: Request "2.2" before "2.0" in 'GUILE_PKG'. Signed-off-by: Artyom V. Poptsov <poptsov.artyom@gmail.com> Ludovic Courtès4-55/+263
2017-04-23build: Allow VPATH builds.•••This fixes builds where $(builddir) != $(srcdir). * examples/Makefile.am (.in): Use $(MKDIR_P) to make the target's parent directories. * tests/common.scm (%topbuilddir): New variable. * tests/sssh-ssshd.scm (*ssshd-cmd*, *sssh-cmd*): Use it instead of %TOPDIR. Signed-off-by: Artyom V. Poptsov <poptsov.artyom@gmail.com> Ludovic Courtès3-2/+5
2017-04-23tests: Use 'inet-ntop' instead of 'inet-ntoa'.•••* tests/sssh-ssshd.scm (*sssh-cmd*): Use 'inet-ntop' instead of the deprecated 'inet-ntoa'. Signed-off-by: Artyom V. Poptsov <poptsov.artyom@gmail.com> Ludovic Courtès1-1/+1
2017-04-23libguile-ssh/sftp-file-type.c: Remove 'mark' and 'free' procedures.•••The mark function was unnecessary given that 'sftp_file_data' is allocated with 'scm_gc_malloc' and thus scanned by the GC. The free function was already a no-op. * libguile-ssh/sftp-file-type.c (mark_sftp_file): Remove. (free_sftp_file): Remove. (init_sftp_file_type): Remove call to 'scm_set_port_mark' and to 'scm_set_port_free'. Signed-off-by: Artyom V. Poptsov <poptsov.artyom@gmail.com> Ludovic Courtès1-15/+0
2017-04-23libguile-ssh/sftp-file-type.c (sftp_file_tag): Make 'static'.•••* libguile-ssh/sftp-file-type.c (sftp_file_tag): Make 'static'. * libguile-ssh/sftp-file-type.h (sftp_file_tag): Remove. Signed-off-by: Artyom V. Poptsov <poptsov.artyom@gmail.com> Ludovic Courtès2-3/+1
2017-04-23libguile-ssh/channel-type.c: Remove 'mark' and 'free' procedures.•••The mark function was unnecessary given that 'channel_data' is allocated with 'scm_gc_malloc' and thus scanned by the GC. The free function was already a no-op. * libguile-ssh/channel-type.c (mark_channel, free_channel): Remove. (init_channel_type): Remove call to 'scm_set_port_mark' and to 'scm_set_port_free'. Signed-off-by: Artyom V. Poptsov <poptsov.artyom@gmail.com> Ludovic Courtès1-15/+0
2017-04-23libguile-ssh/channel-type.c (channel_tag): Make 'static'.•••* libguile-ssh/channel-type.c (channel_tag): Make 'static' * libguile-ssh/channel-type.h (channel_tag): Remove. Signed-off-by: Artyom V. Poptsov <poptsov.artyom@gmail.com> Ludovic Courtès2-3/+1
2017-04-23NEWS: Fix markup a bigArtyom V. Poptsov1-9/+9
2017-04-23node.scm (rrepl-get-result): Bugfix: Handle compilation errors•••Guile-SSH would always fail to read compilation errors properly because it considered the message as "undefined" result. Now this bug should be fixed. An example of an error that now should be handled is "no code for module" due to using a non-existing module in 'with-ssh' expression. Reported by Mathieu, in <https://github.com/artyom-poptsov/guile-ssh/issues/3> * modules/ssh/dist/node.scm (rrepl-get-result): Bugfix: Do not consider compilation errors as undefined results. (rrepl-eval): Call 'exit' on the remote side to ensure that the remote side closed a channel. * tests/dist.scm: Improve logging. ("rrepl-get-result, compilation error"): New TC. * doc/guile-ssh.texi (Acknowledgments): Update. * AUTHORS, NEWS, THANKS: Update. Artyom V. Poptsov6-47/+93
2017-01-06doc/guile-ssh.texi: Fix a grammar errorArtyom V. Poptsov1-1/+1
2017-01-04tests/server-client.scm ("message-get-type"): Wait for a session•••* tests/server-client.scm ("message-get-type"): Wait for a session to be connected on the client side. Artyom V. Poptsov1-3/+3
2017-01-04error.c (guile_ssh_error1): Print errors to the libssh log•••* libguile-ssh/error.c (guile_ssh_error1): Print errors to the libssh log. Artyom V. Poptsov1-1/+11
2017-01-04tests/dist.scm ("with-ssh"): Wait for the client process•••* tests/dist.scm ("with-ssh"): Wait for the client process to read the response. Artyom V. Poptsov1-2/+2
2017-01-04NEWS: UpdateArtyom V. Poptsov1-2/+11
2017-01-04node.scm (issue-procps-warning): New procedure•••* modules/ssh/dist/node.scm (issue-procps-warning): New procedure. (node-server-running?, node-stop-server): Use it. Artyom V. Poptsov1-12/+12
2017-01-04tests/shell.scm ("pgrep"): New TC•••* tests/shell.scm ("pgrep"): New test case. Artyom V. Poptsov1-0/+12
2017-01-04doc/guile-ssh.texi: Update copyright datesArtyom V. Poptsov1-1/+1
2017-01-04doc/guile-ssh.texi (Introduction): Fix some typosArtyom V. Poptsov1-6/+6
2017-01-03guile-ssh.texi (Introduction): Update•••* doc/guile-ssh.texi (Introduction): Replace "language" with "programming language". Artyom V. Poptsov1-1/+1
2017-01-03guile-ssh.texi (Introduction): Describe the goals of the project•••* doc/guile-ssh.texi (Introduction): Describe the goals of this (humble) project. Artyom V. Poptsov1-0/+37
2017-01-03doc/api-dist.texi: Update the note about procps•••* doc/api-dist.texi: Update the note about procps: the module does not strictly depend on procps anymore. Artyom V. Poptsov1-3/+6
2017-01-03doc/api-shell.texi: Add an example for 'loadavg'Artyom V. Poptsov1-0/+15
2017-01-03dist.scm, node.scm: Update copyright dates•••* modules/ssh/dist.scm, modules/ssh/dist/node.scm: Update copyright dates. Artyom V. Poptsov2-2/+2
2017-01-03README (Installation): Add a note about existing packagesArtyom V. Poptsov1-0/+8
2017-01-03README: UpdateArtyom V. Poptsov1-0/+1
2017-01-03NEWS: UpdateArtyom V. Poptsov1-0/+4
2017-01-03tunnel.scm (main-loop): Handle "interrupted system call" errors•••* modules/ssh/tunnel.scm (main-loop): Handle "interrupted system call" errors. Artyom V. Poptsov1-12/+16
2017-01-03.dir-locals.el: Configure 'with-ssh' indentArtyom V. Poptsov1-0/+1
2017-01-03NEWS: UpdateArtyom V. Poptsov1-0/+17
2017-01-03doc/api-shell.texi: Add to the repository•••* doc/api-shell.texi: Add to the repository. * doc/guile-ssh.texi: Include 'api-shell.texi'. * doc/Makefile.am (guile_ssh_TEXINFOS): Add 'api-shell.texi'. Artyom V. Poptsov3-0/+87
2017-01-03shell.scm: Update module commentary•••* modules/ssh/shell.scm: Update module commentary. Artyom V. Poptsov1-1/+2
2017-01-03doc/api-dist.texi: Add description of 'node-loadavg'Artyom V. Poptsov1-1/+25
2017-01-02tests/shell.scm ("loadavg"): New TC•••* tests/shell.scm ("loadavg"): New TC. * tests/common.scm (start-server/exec): Handle "loadavg" request. Artyom V. Poptsov2-0/+14
2017-01-01tests/shell.scm ("command-available?"): New TC•••* tests/shell.scm ("command-available?"): New TC Artyom V. Poptsov1-0/+8
2017-01-01tests/common.scm (start-server/exec): Close output pipeArtyom V. Poptsov1-0/+1
2017-01-01tests/shell.scm ("fallback-pgrep"): New TC•••* tests/shell.scm ("fallback-pgrep"): New TC. * tests/common.scm (start-server/exec): Handle 'fallback-pgrep' request. Artyom V. Poptsov2-0/+19
2017-01-01tests/shell.scm: Update copyright datesArtyom V. Poptsov1-1/+1
2017-01-01tests/shell.scm ("which"): New TC•••* tests/shell.scm ("which"): New TC. * tests/common.scm (start-server/exec): Echo the received command back by default. Artyom V. Poptsov2-0/+16
2017-01-01node.scm (rrepl-skip-to-prompt): Use 'when'•••* modules/ssh/dist/node.scm (rrepl-skip-to-prompt): Use 'when'. Artyom V. Poptsov1-4/+2
2017-01-01node.scm (node-loadavg): New procedure•••* modules/ssh/dist.scm (with-ssh): Move to (ssh dist node); re-export the procedure. * modules/ssh/dist/node.scm (node-loadavg): New procedure. Artyom V. Poptsov2-9/+33
2016-12-31shell.scm (loadavg): New procedure•••* modules/ssh/shell.scm (loadavg): New procedure. Artyom V. Poptsov1-1/+9
2016-12-31shell.scm (rexec): Check only for EOF object•••* modules/ssh/shell.scm (rexec): Check only for EOF object. (eof-or-null?): Remove. Artyom V. Poptsov1-10/+1
2016-12-31tests/shell.scm: Add to the repository•••* tests/shell.scm: Add to the repository. * tests/Makefile.am (SCM_TESTS): Add 'shell.scm'. Artyom V. Poptsov2-0/+66
2016-12-31tests/common.scm: (start-server/exec): Send EOF after response•••* tests/common.scm: (start-server/exec): Send EOF after response. Artyom V. Poptsov1-2/+10
2016-12-25shell.scm (fallback-pgrep): Add dumb 'full?' option•••* modules/ssh/shell.scm (fallback-pgrep): Add dumb 'full?' option so the procedure can be used as drop-in replacement to 'pgrep' where full search is performed (e.g. in (ssh dist node)). * modules/ssh/dist/node.scm (node-server-running?): Update. Artyom V. Poptsov2-10/+5
2016-12-25shell.scm: Add/update docstrings•••* modules/ssh/shell.scm (pgrep): Update the docstring. (pkill, fallback-pkill): Add docstrings. Artyom V. Poptsov1-2/+13
2016-12-25shell.scm (fallback-pkill): Use 'fallback-pkill'•••* modules/ssh/shell.scm (fallback-pkill): Use 'fallback-pkill'. (fallback-pgrep): Return PIDs as the 1st value. Artyom V. Poptsov1-11/+12
2016-12-25shell.scm: Update the module commentary•••* modules/ssh/shell.scm: Update the module commentary. Artyom V. Poptsov1-0/+3
2016-12-25node.scm (procps-available?): New procedure•••* modules/ssh/dist/node.scm (procps-available?): New procedure. (node-server-running?, node-stop-server): Use it. Artyom V. Poptsov1-7/+7