[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Cvs-dev] cvs-passwd patch: weird problem
From: |
Prasad J Pandit |
Subject: |
[Cvs-dev] cvs-passwd patch: weird problem |
Date: |
Thu, 17 Aug 2006 13:55:17 +0530 (IST) |
Hello Mark :) hello Derek :)
Hello all :). Finally, onec again, I'm working on the cvs-passwd patch.
But, for last couple of days I'm observing a very weird behaviour of it.
see, on the cvs server side, my function spasswd () receives the user
credentials as argument, and calls another function change_pass (). The
problem is, it works properly, IF and ONLY IF, I print value of variable
'str (a char *)' or encrypted password 'pass (a char *)' before calling
change_pass ().
And if I don't do that, I've observed, value of variable 'usr (a char *)
changes to empty string ""(actually it points to some different address
all together), and the same is received by function chage_pass (), which
in turn causes it to fail. :(
I recently upgraded to a new machine with FC5 running on it. And it's on
this machine I fist saw this problem, back then, it's like if I print "\n"
before calling change_pass (), it would work, otherwise it wouldn't;
Using fflush (stdout) solved it then, but now it's not enough. I'm not
able to figure out what am I doing wrong.
Could you please look into it? You can get this unstable source at
http://www.cdacbangalore.in/~prasad/tools/cvs-1.12.13.unstable.tar.bz2
file: passwd.c, passwd.h
function: spasswd ();
Thank you! :)
--
regards
-Prasad
PS: Please don't send me html/attachment/Fwd mails
- [Cvs-dev] cvs-passwd patch: weird problem,
Prasad J Pandit <=
- [Cvs-dev] Re: cvs-passwd patch: weird problem, Mark D. Baushke, 2006/08/17
- Re: [Cvs-dev] cvs-passwd patch: weird problem, Mark D. Baushke, 2006/08/19
- Re: [Cvs-dev] cvs-passwd patch: weird problem, Prasad J Pandit, 2006/08/21
- Re: [Cvs-dev] cvs-passwd patch: weird problem, Mark D. Baushke, 2006/08/21
- Re: [Cvs-dev] cvs-passwd patch: weird problem, Prasad J Pandit, 2006/08/21
- Re: [Cvs-dev] cvs-passwd patch: weird problem, Mark D. Baushke, 2006/08/21
- Re: [Cvs-dev] cvs-passwd patch: weird problem, Larry Jones, 2006/08/21
- Re: [Cvs-dev] cvs-passwd patch: weird problem, Prasad J Pandit, 2006/08/22
- Re: [Cvs-dev] cvs-passwd patch: weird problem, Mark D. Baushke, 2006/08/22