bugutil-vserver - Bugs: bug #15281, wrong call to colorize in functions

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #15281: wrong call to colorize in functions

Submitter:  Micah Anderson <hacim>
Submitted:  Fri 23 Dec 2005 03:27:53 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  ensc
Open/Closed:  Closed Component Version:  alpha
Release:  0.30.209

Sun 22 Jan 2006 12:42:39 PM UTC, comment #2: 

thx, fixed in CVS and 0.30.210+

Enrico Scholz <ensc>
Group administrator
Fri 23 Dec 2005 03:36:24 PM UTC, comment #1: 

Patch for this already submitted, see patch #4714

XeRO <xerofun>
Fri 23 Dec 2005 03:27:53 PM UTC, original submission:  

In /usr/lib/util-vserver/functions, you have a call to the "colorize"                                                                                                     function. It doesn't respect the usage of the function:                                                                                                                 
                                                                                                                                                                         
 ## Usage: colorize <style> <command>                                                                                                                                    
                                                                                                                                                                         
You will see the behavior when trying to create a vserver that already                                                                                                    exists, under some weird circumstances I'm not sure you'll be able to                                                                                                     reproduce. At any case, it's a wrong usage and should be fixed, this                                                                                                      way:                                                                                                                                                                    
                                                                                                                                                                         
 --- functions.orig      2005-12-13 23:44:28.414816664 -0500                                                                                                             
 +++ functions   2005-12-13 23:44:37.538429664 -0500                                                                                                                     
 @@ -213,7 +213,7 @@                                                                                                                                                     
      if test -n "$_VS_ERRFILE"; then                                                                                                                                    
         echo "$@" >>"$_VS_ERRFILE"                                                                                                                                      
      else                                                                                                                                                               
 -       colorize echo -n "$@" >&2   
 +       colorize error echo -n "$@" >&2                                                                                                                                 
      fi                                                                                                                                                                 
      echo                                                                                                                                                               

Micah Anderson <hacim>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-01-22 ensc StatusNone Fixed
    Assigned toNone ensc
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.13-bb6a.
Corresponding source code