Re: gCvs not logging on to pserver
Guy Rouillier <[email protected]> Fri, 30 Jul 2004 00:32:17 -0400
| Newsgroups | gmane.comp.version-control.cvs.gui.devel |
|---|---|
| Message-ID | <20040730003217.5021dea2@emach> |
On Thu, 29 Jul 2004 14:16:57 +0200 Jens Miltner <[email protected]> wrote: > > (1) Is there a callback mechanism such that if cvsnt needs a > > password, it can ask CvsGui for it over the open pipes? Then CvsGui > > would pop up a dialog, get the password from the user and return the > > answer to the waiting cvsnt. > > I think there is some code that attempts to catch password queries in > AppGlue.cpp, Line 342 ff. > I'm not sure whether this code is really used during cvs execution, > since it relies on some environment variable to be queried. > cvsnt should route the getenv queries through the cvsgui wire > protocol, so _if_ it queries that env variable, it'll end up there... Jens, thanks for the reply. Here is my progress so far. I put some cvs_log statements in AppGlue.cpp, function glue_getenv, here is what happens when I try to login: cvs -z3 -d :pserver:[email protected]:/data/cvs/cvsroot login AppGlue::glue_getenv TMPDIR AppGlue::glue_getenv CVSEDITOR AppGlue::glue_getenv VISUAL AppGlue::glue_getenv EDITOR AppGlue::glue_getenv CVSROOT AppGlue::glue_getenv CVSREAD AppGlue::glue_getenv CVSUMASK Logging in to :pserver:[email protected]:2401:/data/cvs/cvsroot It gets called a bunch of times, but not for CVS_GETPASS unfortunately. When I run inside anjuta so that i get a console, the prompt I get is "CVS password: ". This is not coming from gCvs, but from cvsnt, file src/login.c. I'll continue with this on the weekend. The good news is that if I can figure out how to get the env variable triggered, I see in GetPassword.cpp function CompatGetPassword that the password dialog is created to prompt the user for the password. I see a lot of code in CompatGetPassword for the Mac. Do you know if you get prompted for a password for pservers in MacCvs? -- Guy Rouillier ------------------------ Yahoo! Groups Sponsor --------------------~--> Yahoo! Domains - Claim yours for only $14.70 http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/NhFolB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/cvsgui-dev/ <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/