Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LSH
lsh
Commits
34df3504
Commit
34df3504
authored
25 years ago
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
* src/proxy.c, src/server_session.c: Replaced io_fd with lsh_fd.
Rev: src/proxy.c:1.3 Rev: src/server_session.c:1.24
parent
3af7617a
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/proxy.c
+1
-1
1 addition, 1 deletion
src/proxy.c
src/server_session.c
+13
-13
13 additions, 13 deletions
src/server_session.c
with
14 additions
and
14 deletions
src/proxy.c
+
1
−
1
View file @
34df3504
...
...
@@ -91,7 +91,7 @@ do_chain_connections(struct command *s,
int
salen
=
sizeof
(
sa
);
/* FIXME: support non AF_INET address families */
if
(
getsockname
(
self
->
lv
->
fd
->
super
.
fd
,
(
struct
sockaddr
*
)
&
sa
,
&
salen
)
!=
-
1
)
if
(
getsockname
(
self
->
lv
->
fd
->
fd
,
(
struct
sockaddr
*
)
&
sa
,
&
salen
)
!=
-
1
)
{
struct
address_info
*
a
;
...
...
This diff is collapsed.
Click to expand it.
src/server_session.c
+
13
−
13
View file @
34df3504
...
...
@@ -170,11 +170,11 @@ struct resource *make_process_resource(pid_t pid, int signal)
(term string)
; Child process's stdio
(in object
io
_fd)
(out object
io
_fd)
(in object
lsh
_fd)
(out object
lsh
_fd)
;; err may be NULL, if there's no separate stderr channel.
;; This happens if we use a pty, and the bash workaround
(err object
io
_fd)))
(err object
lsh
_fd)))
*/
/* Receive channel data */
...
...
@@ -205,17 +205,17 @@ do_send(struct ssh_channel *s,
{
CAST
(
server_session
,
session
,
s
);
assert
(
session
->
out
->
super
.
read
);
assert
(
session
->
out
->
read
);
/* assert(session->out->handler); */
session
->
out
->
super
.
want_read
=
1
;
session
->
out
->
want_read
=
1
;
if
(
session
->
err
)
{
assert
(
session
->
err
->
super
.
read
);
assert
(
session
->
err
->
read
);
/* assert(session->err->handler); */
session
->
err
->
super
.
want_read
=
1
;
session
->
err
->
want_read
=
1
;
}
}
...
...
@@ -856,7 +856,7 @@ do_spawn_shell(struct channel_request *c,
=
make_channel_read_close_callback
(
channel
);
session
->
in
=
io_write
(
make_
io
_fd
(
closure
->
backend
,
in
[
1
],
=
io_write
(
make_
lsh
_fd
(
closure
->
backend
,
in
[
1
],
io_exception_handler
),
SSH_MAX_PACKET
,
NULL
);
...
...
@@ -867,12 +867,12 @@ do_spawn_shell(struct channel_request *c,
* which will close the channel on read errors, or is it
* better to just send EOF on read errors? */
session
->
out
=
io_read
(
make_
io
_fd
(
closure
->
backend
,
out
[
0
],
io_exception_handler
),
=
io_read
(
make_
lsh
_fd
(
closure
->
backend
,
out
[
0
],
io_exception_handler
),
make_channel_read_data
(
channel
),
read_close_callback
);
session
->
err
=
(
(
err
[
0
]
!=
-
1
)
?
io_read
(
make_
io
_fd
(
closure
->
backend
,
err
[
0
],
io_exception_handler
),
?
io_read
(
make_
lsh
_fd
(
closure
->
backend
,
err
[
0
],
io_exception_handler
),
make_channel_read_stderr
(
channel
),
read_close_callback
)
:
NULL
);
...
...
@@ -892,12 +892,12 @@ do_spawn_shell(struct channel_request *c,
/* FIXME: How to do this properly if in and out may use the
* same fd? */
REMEMBER_RESOURCE
(
channel
->
resources
,
&
session
->
in
->
super
.
super
);
(
channel
->
resources
,
&
session
->
in
->
super
);
REMEMBER_RESOURCE
(
channel
->
resources
,
&
session
->
out
->
super
.
super
);
(
channel
->
resources
,
&
session
->
out
->
super
);
if
(
session
->
err
)
REMEMBER_RESOURCE
(
channel
->
resources
,
&
session
->
err
->
super
.
super
);
(
channel
->
resources
,
&
session
->
err
->
super
);
if
(
want_reply
)
A_WRITE
(
channel
->
write
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment