GNATS Login
Jason Molenda
jason-gcclist@molenda.com
Sun Dec 16 23:09:00 GMT 2001
Gerald fixed the problem that the gnats login page wasn't saying,
"Enter guest/guest to log in", but I figured it wouldn't be too
hard to change gnatsweb's annoying behavior to assume a default of
guest/guest automatically. And so it is. cf
http://gcc.gnu.org/cgi-bin/gnatswebber.pl?cmd=view&pr=4529&database=gcc
This is "gnatswebber.pl" instead of "gnatsweb.pl". I've tested it
a reasonable amount, but I haven't read over gnatsweb.pl with care
so I wanted to give other people a chance to test it before I commit
the change. I'll attach the patch, it's really pretty straightforward.
This patch should also make gnatsweb usable for people who don't
accept cookies, at least for read-only access. gnatsweb will still
try to push cookies at you when you make queries (to remember the
query you made), but it will work fine regardless of whether you
accept the cookie or not.
Jason
On Fri, Dec 14, 2001 at 09:26:41PM -0500, Adam Schrotenboer wrote:
> Something that has been getting on my nerves is that it is impossible to (at
> least thru a direct link) read a PR w/o having a GNATS login.
>
> Any plans to make the GNATS db available for public access?
> > The 8139too.c ICE should be fixed:
> > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4529&database=gcc
-------------- next part --------------
--- gnatsweb.pl Sat Dec 15 01:57:42 2001
+++ gnatswebber.pl Sun Dec 16 21:39:06 2001
@@ -3501,6 +3501,13 @@ sub main
$global_prefs{'database'}="gcc";
#GCC-LOCAL end.
+ #GCC-LOCAL begin: No username/pass provided? Default to guest/guest
+ if (!$db_prefs{'user'} || !$db_prefs{'password'}) {
+ $db_prefs{'user'} = "guest";
+ $db_prefs{'password'} = "guest";
+ }
+ #GCC-LOCAL end.
+
# Big old switch to handle commands.
if($cmd eq 'store query')
{
More information about the Gcc
mailing list