Commit c4869d2c authored by Niels Möller's avatar Niels Möller
Browse files

* src/algorithms.h, src/channel.c, src/debug.h,

src/parse_macros.h, src/server.c, src/erver_pty.c,
src/server_session.c, xalloc.c: Minor bugfixes, reported by David
Kågedal.

Rev: src/algorithms.h:1.6
Rev: src/channel.c:1.82
Rev: src/debug.h:1.14
Rev: src/parse_macros.h:1.2
Rev: src/server.c:1.63
Rev: src/server_pty.c:1.16
Rev: src/server_session.c:1.45
Rev: src/xalloc.c:1.23
parent 834cd968
......@@ -74,4 +74,4 @@ void init_algorithms_options(struct algorithms_options *self,
extern const struct argp algorithms_argp;
#endif */ LSH_ALGORITHMS_H_INCLUDED */
#endif /* LSH_ALGORITHMS_H_INCLUDED */
......@@ -287,7 +287,7 @@ make_channel_table(void)
object_queue_init(&table->pending_global_requests);
return table;
};
}
/* Returns -1 if allocation fails */
/* NOTE: This function returns locally chosen channel numbers, which
......
......@@ -40,4 +40,4 @@ void send_verbose(struct abstract_write *write, const char *msg, int always_disp
struct packet_handler *make_rec_debug_handler(void);
#endif */ LSH_DEBUG_H_INCLUDED */
#endif /* LSH_DEBUG_H_INCLUDED */
......@@ -16,4 +16,4 @@
#define ADVANCE(n) (BUFFER->pos += (n))
#define GET() (BUFFER->data[BUFFER->pos++])
#endif */ LSH_PARSE_MACROS_H_INCLUDED */
#endif /* LSH_PARSE_MACROS_H_INCLUDED */
......@@ -62,7 +62,7 @@ static struct lsh_string *format_service_accept_kludge(void)
{
return ssh_format("%c", SSH_MSG_SERVICE_ACCEPT);
}
#endif DATAFELLOWS_WORKAROUNDS
#endif /* DATAFELLOWS_WORKAROUNDS */
static void
do_service_request(struct packet_handler *c,
......
/* server_pty.h
/* server_pty.c
*
* $Id$
*/
......@@ -163,7 +163,7 @@ pty_grantpt_uid(int master, uid_t user)
}
}
#endif HAVE_UNIX98_PTYS
#endif /* HAVE_UNIX98_PTYS */
int pty_allocate(struct pty_info *pty,
uid_t user
......
......@@ -830,6 +830,7 @@ do_spawn_exec(struct channel_request *c,
case 0:
{ /* Child */
#define MAX_ENV 1
/* FIXME: HPUX compiler can't handle array initialization. */
/* No args, end the USER_EXEC method fills in argv[0]. */
char *argv[] = { NULL, "-c", command_line->data, NULL };
......
......@@ -211,7 +211,7 @@ void lsh_object_free(struct lsh_object *o)
#endif
lsh_free(o);
};
}
#if DEBUG_ALLOC
struct lsh_object *lsh_object_check(struct lsh_class *class,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment