bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cvs on NT doen't read password from stdin


From: Thomas Bleier
Subject: cvs on NT doen't read password from stdin
Date: Thu, 4 Oct 2001 11:29:57 +0200

When browsing through the CVS 1.11.1p1 sources I found out that the 
NT port of CVS reads the password for pserver connections directly 
from the console and not from stdin. I would request to change that, 
for the reasons described below.

I'm currently working on an "add-on" to CVS on Windows NT, and I want 
to automatically log in to a pserver repository, which requires that 
I can pass the password to the CVS subprocess. (Since 1.11.1 cvs 
accepts it in the CVSROOT string but that implies storing the 
password in the CVS/ subdir...). The current NT port uses _getch() to 
read the password, which reads character directly from the console. 
Another process has no possibility (AFAIK) to feed a password to CVS.

I would suggest to change that call to getchar() (in 
/windows-NT/win32.c, line 114 for cvs 1.11.1p1) so that characters 
are read from stdin, which would allow the usage of CVS from other 
processes (scripts, etc).

BTW, are there any special considerations for building cvs with 
Visual C++ 6.0? I read the documentation and tried it (using VC++ 6.0 
SP 4 on W2K SP2), but I ended up getting linker errors. Since I'm no 
Visual C++ user, I was not able to fix them...
__
/homas
                  _\\|//_       
                  ///|\\\       
---------------oOO--(_)---OOo---------------<http://www.bleier.at>--
"Death called while you were out, so I gave him your pager number."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]