Thread View: comp.bugs.sys5
5 messages
5 total messages
Started by Stephen J. Friedl
Tue, 24 Jan 1989 04:25
possible bug in HDB uucp?
Author: Stephen J. Friedl
Date: Tue, 24 Jan 1989 04:25
Date: Tue, 24 Jan 1989 04:25
23 lines
1220 bytes
1220 bytes
Is this a bug? I'm running Sys V Rel 3.1 on a 3B2/400 with
(obviously) HDB uucp. I'm in the process of connecting with a
local site (hi Larry!), and the password I was given included a %
character. After a handful of failed logins, it occurred to me
that perhaps the Systems send strings were subject to "printf-
expansion" (is that a real term?). I tried a password of
%foobar
and I got a floating zero followed by "oobar". I tried doubling
the % to %%foobar but it still doesn't work. By now, we've
gotten things to work by using a different password, but this %
business can't be right...
Anybody? peter?
Steve
--
Stephen J. Friedl 3B2-kind-of-guy friedl@vsi.com
V-Systems, Inc. I speak for you only attmail!vsi!friedl
Santa Ana, CA USA +1 714 545 6442 {backbones}!vsi!friedl
Nancy Reagan on these *stupid* .signatures: "Enough already, OK?"
Re: possible bug in HDB uucp?
Author: Vincent C. Hatem
Date: Tue, 24 Jan 1989 22:52
Date: Tue, 24 Jan 1989 22:52
30 lines
1693 bytes
1693 bytes
In article <1025@vsi.COM>, friedl@vsi.COM (Stephen J. Friedl) writes:
} Is this a bug? I'm running Sys V Rel 3.1 on a 3B2/400 with
} (obviously) HDB uucp. I'm in the process of connecting with a
} local site (hi Larry!), and the password I was given included a %
} character. After a handful of failed logins, it occurred to me
} that perhaps the Systems send strings were subject to "printf-
} expansion" (is that a real term?). I tried a password of
}
} %foobar
}
} and I got a floating zero followed by "oobar". I tried doubling
} the % to %%foobar but it still doesn't work. By now, we've
} gotten things to work by using a different password, but this %
} business can't be right...
Very strange... the source code uses write(2) to send the string to the
remote host. It shouldn't interere. It might be mashing the % before then,
such as when it reads it from the Systems file and tries to translate
it somehow. I dodn't find anything that would do such a thing in the
code, though.
Have you tried a backlash before the %?
-Vince
--
Vincent C. Hatem
e-mail: {any Action Central site || att}!attibr!vch
snail-mail: AT&T International, 1200 Mt. Kemble Ave, Basking Ridge, NJ 07920
tele: +1-201-953-7959 ------ Gruezi wohl! -------
Re: possible bug in HDB uucp?
Author: Stephen J. Friedl
Date: Wed, 25 Jan 1989 08:16
Date: Wed, 25 Jan 1989 08:16
26 lines
1372 bytes
1372 bytes
In article <1025@vsi.COM>, friedl@vsi.COM (Stephen J. Friedl) writes:
>
> [summary] HDB on a 3B2/400, Sys V Rel 3.1. In the Systems
> file, a password containing a % is expanded as in printf,
> so "%foobar" ---> "0.00000oobar".
In article <116@attibr.UUCP>, vch@attibr.UUCP (Vincent C. Hatem) writes:
>
> Very strange... the source code uses write(2) to send the string to the
> remote host.
The expansion I'm seeing is in the -x9 *debug* output, and I
guess I didn't check to see if it were going to the other end
that way.
In any case, the remote login worked fine if I went at it with
cu, but no combination of % or %% or \% in the password field would
make it work via uucico.
Steve
--
Stephen J. Friedl 3B2-kind-of-guy friedl@vsi.com
V-Systems, Inc. I speak for you only attmail!vsi!friedl
Santa Ana, CA USA +1 714 545 6442 {backbones}!vsi!friedl
Nancy Reagan on these *stupid* .signatures: "Enough already, OK?"
Re: possible bug in HDB uucp?
Author: peter honeyman
Date: Wed, 25 Jan 1989 15:04
Date: Wed, 25 Jan 1989 15:04
7 lines
674 bytes
674 bytes
i just tried password "%foobar" between two honey danber machines, and it worked just fine. i also read the code, and i don't see anything untoward (e.g. sprintf or its ilk). can you get a -x9 debug output? peter
Re: possible bug in HDB uucp?
Author: Daniel R. Levy
Date: Fri, 27 Jan 1989 06:32
Date: Fri, 27 Jan 1989 06:32
34 lines
2257 bytes
2257 bytes
In article <1033@vsi.COM>, friedl@vsi.COM (Stephen J. Friedl) writes: < In article <1025@vsi.COM>, friedl@vsi.COM (Stephen J. Friedl) writes: < > [summary] HDB on a 3B2/400, Sys V Rel 3.1. In the Systems < > file, a password containing a % is expanded as in printf, < > so "%foobar" ---> "0.00000oobar". < In article <116@attibr.UUCP>, vch@attibr.UUCP (Vincent C. Hatem) writes: < > Very strange... the source code uses write(2) to send the string to the < > remote host. < The expansion I'm seeing is in the -x9 *debug* output, and I < guess I didn't check to see if it were going to the other end < that way. < In any case, the remote login worked fine if I went at it with < cu, but no combination of % or %% or \% in the password field would < make it work via uucico. I partially verified this (on the 3B2 running SVR3); as root, I Uutry'd a system which had a "%g" embedded in its password and it was similarly "printf- expanded" in the debug output. However, the remote apparently received the correct password, as the login succeeded and the machines began to converse. I pored over the HDB source on another machine (which has an earlier version of conn.c, i.e., 1.16, versus 2.9 according to "what" on the binary which was supplied with my 3B2) and this phenomenon appears to be impossible! As V. Hatem pointed out, write() is used to send the data to the remote host. This is done one character at a time. Also, the debug output is written one character at a time. fprintf(stderr...) is used, but always a proper format is supplied (through the CDEBUG macro) for the second argument. Doo doo doo doo, Doo doo doo doo, ... -- Daniel R. Levy UNIX(R) mail: att!ttbcad!levy AT&T Bell Laboratories 5555 West Touhy Avenue Any opinions expressed in the message above are Skokie, Illinois 60077 mine, and not necessarily AT&T's.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads