[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: The --password and clumsy users issue

From: Branko Čibej <brane_at_wandisco.com>
Date: Fri, 04 Jul 2014 09:46:00 +0200

On 04.07.2014 02:14, Gabriela Gibson wrote:
> I also looked at the C90 standard because I thought maybe they defined
> argv as immutable (since it should not complain about being const with
> this type of main declaration I think) and this is what is says:
>
> "The parameters argc and argv and the strings pointed to by the argv
> array shall
> be modifiable by the program, and retain their last-stored values
> between program
> startup and program termination."
>
> This seems a bit ambiguous --- so it's changeable, but between start
> up and termination they retain their value?

Read your quote again. "they retain the *last-stored* value".

> So, that is maybe why the kernel's info isn't changing but the args
> can be modified?

I must point out that "the" (Linux?) kernel does not have to comply with
the C language standard. The info that the kernel stores may have
exactly nothing to do with the argument array that's in the process
memory space.

-- Brane

-- 
Branko Čibej | Director of Subversion
WANdisco // Non-Stop Data
e. brane_at_wandisco.com
Received on 2014-07-04 09:46:38 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.