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

Submitted by:  Micah Anderson <hacim>
Submitted on:  Fri 23 Dec 2005 03:27:53 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Enrico Scholz <ensc>
Open/Closed: ClosedComponent 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>
Project AdministratorIn charge of this item.
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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sun 22 Jan 2006 12:42:39 PM UTCenscStatusNone=>Fixed
  Assigned toNone=>ensc
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1