Segfaults when compiling on newer version of glibc ( 2.3 -> 2.10 )?

Ok, it turned out to be pretty simple. I've changed mentioned strings to strftime(logname, FILENAME_MAX+1, "%F. %T", gmtime(&tvec)) snprintf(fname, FILENAME_MAX+1, "%s/openssh.

%s. %08x. Typescript", SCRIPTDIR, username, rnd) Ofc it's dirty, but works.

Ok, it turned out to be pretty simple. I've changed mentioned strings to strftime(logname, FILENAME_MAX+1, "%F. %T", gmtime(&tvec)); snprintf(fname, FILENAME_MAX+1, "%s/openssh.

%s. %08x. Typescript", SCRIPTDIR, username, rnd); Ofc it's dirty, but works.

I do not think that substituting FILENAME_MAX+1 for sizeof(logname) should make any difference. You can verify that those values will be the same given the way you've declared logname. I suspect that simply un-commenting-out the line 50 strftime() that loaded logname was the actual fix, not the change to FILENAME_MAX+1.

– Kamal Nov 11 '10 at 19:57 I've returned it back, removed all my comment signs and changed sizeof(...) to their respective FILENAME_MAX+1 defines. Yeah, their values shall be identical, but somehow FILENAME_MAX+1 makes a difference and now sshd works as intended. – elementai Nov 16 '10 at 13:33.

I believe that the reason your code crashes is that (with line 50 commented out) you have left logname with undefined contents when you use it at line 60. You mentioned that you removed the logname reference from line 53 along with commenting out line 50 -- perhaps you just forgot to also remove it from line 60 in that case?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions