search for: optionvalue

Displaying 8 results from an estimated 8 matches for "optionvalue".

2007 Apr 11
2
Patch for ini plugin
...gt; @@ -895,7 +854,6 @@ iniSaveOptions (CompDisplay *d, while (nOption--) { status = FALSE; - strVal = strdup (""); int i; switch (option->type) @@ -907,8 +865,11 @@ iniSaveOptions (CompDisplay *d, case CompOptionTypeColor: case CompOptionTypeMatch: strVal = iniOptionValueToString (&option->value, option->type); - if (strVal[0] != '\0') + if (strVal) + { fprintf (optionFile, "%s=%s\n", option->name, strVal); + free (strVal); + } else fprintf (optionFile, "%s=\n", option->name); break; @@ -916,47...
2008 Jan 31
2
[patch] fix crash in ini plugin
...ure why this hasn't been caught before - i guess not many people use the ini plugin. Please apply. randolph diff --git a/plugins/ini.c b/plugins/ini.c index d58f671..2d3c2dd 100644 --- a/plugins/ini.c +++ b/plugins/ini.c @@ -377,7 +377,7 @@ iniParseLine (char *line, char **optionName, char **optionValue) if (*optionName) { strncpy (*optionName, line, length); - *optionName[length] = 0; + (*optionName)[length] = 0; } splitPos++; optionLength = strlen (splitPos); @@ -387,7 +387,7 @@ iniParseLine (char *line, char **optionName, char **optionValue) if...
2014 May 16
0
chain to an Altiris PXE menu from syslinux
Hi, I finally got it working and it was just as Gene said except that option 43 didn't have the right value. I downloaded a utility called PXEForcedMode that gave me the binary string I had to use as option 43. In my case the utility reported the following data: dhcp server set optionvalue 43 BINARY 06010B0807AAAA010AD7903C00 dhcp server set optionvalue 60 STRING PXEClient dhcp server set optionvalue 66 STRING 10.215.144.60 dhcp server set optionvalue 67 STRING BStrap\X86pc\BStrap.0 So I added this in my syslinux menu and I could correctly boot and load the Altiris menu: COM32 px...
2012 Feb 09
1
Autorun Picks Up Options
Hi, I was trying to use the autorun feature of rspec but noticed that when I run the command to kick off the ruby scripts it picks up the options that I give to the command. ''myRubyBin -j optionValue'' This then fails with this error, /usr/lib/ruby/1.8/optparse.rb:1448:in `complete'' : invalid option: -j ( OptionParser::InvalidOption ) from /usr/lib/ruby/1.8/optparse.rb:1446:in `catch'' from /usr/lib/ruby/1.8/optparse.rb:1446:in `complete'' from /usr/lib/ruby/...
2013 Jun 12
2
[LLVMdev] "anchor" method policy, request for clarification
I tried to build LLVM with 'gcc-4.8.1 -flto', and when linking unittest programs, I got the following error: /tmp/cc8pMk84.ltrans30.ltrans.o:(.data.rel.ro._ZTIN4llvm2cl15OptionValueCopyISsEE[_ZTIN4llvm2cl15OptionValueCopyISsEE]+0x10): undefined reference to `typeinfo for llvm::cl::GenericOptionValue' /tmp/cc8pMk84.ltrans30.ltrans.o:(.data.rel.ro._ZTIN4llvm2cl15OptionValueCopyINS0_13boolOrDefaultEEE[_ZTIN4llvm2cl15OptionValueCopyINS0_13boolOrDefaultEEE]+0x10): undefined ref...
2013 Jun 12
0
[LLVMdev] "anchor" method policy, request for clarification
...On Wed, Jun 12, 2013 at 1:44 PM, Patrik Hägglund H <patrik.h.hagglund at ericsson.com> wrote: > I tried to build LLVM with ’gcc-4.8.1 –flto’, and when linking unittest > programs, I got the following error: > > > > /tmp/cc8pMk84.ltrans30.ltrans.o:(.data.rel.ro._ZTIN4llvm2cl15OptionValueCopyISsEE[_ZTIN4llvm2cl15OptionValueCopyISsEE]+0x10): > undefined reference to `typeinfo for llvm::cl::GenericOptionValue' > > /tmp/cc8pMk84.ltrans30.ltrans.o:(.data.rel.ro._ZTIN4llvm2cl15OptionValueCopyINS0_13boolOrDefaultEEE[_ZTIN4llvm2cl15OptionValueCopyINS0_13boolOrDefaultEEE]+0x10)...
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...ne' : 'selectMany'](element); else { - var opt, value, single = !Object.isArray(index); + var opt, currentValue, single = !Object.isArray(value); for (var i = 0, length = element.length; i < length; i++) { opt = element.options[i]; - value = this.optionValue(opt); + currentValue = this.optionValue(opt); if (single) { - if (value == index) { + if (currentValue == value) { opt.selected = true; return; } } - else opt.selected = index.include(value); + else opt.se...
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply to this email, as some of the replaced lines are too long, so git won't let me send the email. However, there is nothing wrong with that patch, and it should be applied in the sequence listed below. Note also that I assume this will be tested on a clean f11 install, rather than an upgrade of an existing ovirt server