Hi Denis,
attached is a patch that fix the following error message:
# ./busybox conspy 0
conspy: can't open '/dev/vcsa0': No such file or directory
Max.
diff --git a/miscutils/conspy.c b/miscutils/conspy.c
index ae471a3..74ed2a5 100644
--- a/miscutils/conspy.c
+++ b/miscutils/conspy.c
@@ -284,7 +284,8 @@ int conspy_main(int argc UNUSED_PARAM, char **argv)
ttynum = 0;
if (argv[0]) {
ttynum = xatou_range(argv[0], 0, 63);
- sprintf(vcsa_name + sizeof("/dev/vcsa")-1, "%u", ttynum);
+ if (ttynum != 0)
+ strcat(vcsa_name, argv[0]);
}
sprintf(tty_name, "%s%u", "/dev/tty", ttynum);
if (opts & FLAG(c)) {
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox