Re: lts.conf LIKE loop potential
"Gideon Romm" <[email protected]>
| Newsgroups | gmane.linux.terminal-server.devel |
|---|---|
| Message-ID | <[email protected]> |
Sounds to me like the solution is not to limit the number of LIKE statements, but rather to put a conditional statement in getltscfg that keeps track of which [] entries have been processed, and ignores any LIKE parameter that was already processed. So, for example: [ws001] LIKE = ws002 [ws002] LIKE = ws003 [ws003] LIKE = ws002 LIKE = ws004 [ws004] foo = bar When getltscfg processes ws001, it should say: 1. process ws002 2. process ws003 3. ws003 says to process ws002, but that's been processed already, so ignore 4. process ws004 -Gadi On Tue, Jul 15, 2008 at 6:26 PM, Michael Shigorin <[email protected]> wrote: > Hello, > while remembering: there's infinite loop potential when parsing > lts.conf containing looped LIKE entries[1]: > > [ws001] LIKE = ws002 > [ws002] LIKE = ws001 > > Might be reasonable to put a cap of say 30 LIKEs per entry... > forgot to ask led@ to fix that when we found it out, so at least > reporting. > > [1] http://wiki.ltsp.org/twiki/bin/view/Ltsp/LtsConf > > -- > ---- WBR, Michael Shigorin <mike-u2l5PoMzF/[email protected]> > ------ Linux.Kiev http://www.linux.kiev.ua/ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _____________________________________________________________________ > Ltsp-developer mailing list. To un-subscribe, or change prefs, goto: > https://lists.sourceforge.net/lists/listinfo/ltsp-developer > For additional LTSP help, try #ltsp channel on irc.freenode.net > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _____________________________________________________________________ Ltsp-developer mailing list. To un-subscribe, or change prefs, goto: https://lists.sourceforge.net/lists/listinfo/ltsp-developer For additional LTSP help, try #ltsp channel on irc.freenode.net