Displaying 1 result from an estimated 1 matches for "saved_command".
Did you mean:
save_command
2000 Sep 04
1
trivial patch to post overridden command into env
...e list ]
-------------- next part --------------
diff -ruN openssh-2.2.0p1.orig/session.c openssh-2.2.0p1/session.c
--- openssh-2.2.0p1.orig/session.c Tue Aug 29 18:21:22 2000
+++ openssh-2.2.0p1/session.c Mon Sep 4 11:47:10 2000
@@ -125,6 +125,8 @@
static login_cap_t *lc;
#endif
+static char *saved_command = 0;
+
/*
* Remove local Xauthority file.
*/
@@ -377,8 +379,11 @@
packet_integrity_check(plen, 0, type);
}
if (forced_command != NULL) {
+ saved_command = command;
command = forced_command;
debug("Forced command '%.500s'", forced_command);
+ } else...