TCP-group 1992
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
small bug in gri 1.9c
- To: tcp-group@ucsd.edu
- Subject: small bug in gri 1.9c
- From: "Johan K. Reinalda" <johan@ECE.ORST.EDU>
- Date: Tue, 28 Jan 92 07:49:13 -0800
Gerard copied my mailbox-gateway code from an older set of sources,
and didn't catch the bug i had left in there.
The gateway command is NOT protected per individual user, since the
check for privs is missing. (MBsecure still works)
Also, the R: line in forward.c has a small bug with @:call field
Diffs are given below to fix both...
Johan.
---------------
In MAILBOX.C
2405c2405,2409
< if(Nrifaces[0].iface == NULLIF){
---
> if(!(m->privs & NETROM_CMD)) {
> tputs(Noperm);
> return 0;
> }
> if(Nrifaces[0].iface == NULLIF){
2443c2447,2451
< if((ifp = if_lookup(argv[1])) == NULLIF) {
---
> if(!(m->privs & AX25_CMD)) {
> tputs(Noperm);
> return 0;
> }
> if((ifp = if_lookup(argv[1])) == NULLIF) {
In FORWARD.C
123c123
< usprintf(m->user,"R:%s @%s.%s [%s] %s #:%u Z:%s\n",
---
> usprintf(m->user,"R:%s @:%s.%s [%s] %s #:%u Z:%s\n",
------------------------------