This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 2/2] Add a self-update mechanism for setup.exe


On 02/02/2011 23:24, Jon TURNEY wrote:

> +  /*
> +    XXX: do we need a mechanism for source of setup.exe to be overriden in .ini file
> +    for the benefit of people who use a patched version? Or can they just patch this
> +    as well? :-)
> +  */
> +#define SETUP_URL "http://cygwin.com/setup.exe";

  Why not make that a string resource, like the mirror list is?

> +  for (int i = 1; _argv[i]; i++)
> +    {
> +      newArgs += " ";
> +      newArgs += _argv[i];
> +    }

  Quoting would be needed if any of those are paths containing spaces.

    cheers,
      DaveK


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]