On 2013/9/2 19:15, Ivana Varekova wrote:
>
>
> ----- Original Message -----
>> From: "Libo Chen" <[email protected]>
>> To: "Ivana Hutarova Varekova" <[email protected]>, "Libcg Development
>> list" <[email protected]>,
>> "Li Zefan" <[email protected]>, "Huang Qiang" <[email protected]>,
>> "Wengmeiling"
>> <[email protected]>, "Dhaval Giani" <[email protected]>
>> Sent: Friday, August 30, 2013 5:05:26 AM
>> Subject: [PATCH v2 4/5] cgconfig: add parameter check
>>
>>
>> we should check invalite parameter, and then print a warning
>>
>> v2:
>> change print info format. This is suggested
>> by Dhaval Giani <[email protected]>
>>
>> Signed-off-by: Libo Chen <[email protected]>
>> ---
>> src/tools/cgconfig.c | 7 +++++++
>> 1 files changed, 7 insertions(+), 0 deletions(-)
>>
>> diff --git a/src/tools/cgconfig.c b/src/tools/cgconfig.c
>> index b205d1b..76aee94 100644
>> --- a/src/tools/cgconfig.c
>> +++ b/src/tools/cgconfig.c
>> @@ -140,6 +140,13 @@ int main(int argc, char *argv[])
>> }
>> }
>>
>> + if (argv[optind]) {
>> + fprintf(stderr, "%s: illegal option -- %s\n",
>> + argv[0], argv[optind]);
>> + usage(argv[0]);
>> + goto err;
>> + }
>> +
> if there is change in usage function, then there will be no need of fprintf
> output (see 3/5 patch)
ok, I will update soon
>> /* set default permissions */
>> default_group = cgroup_new_cgroup("default");
>> if (!default_group) {
>> --
>> 1.7.1
>>
>>
>
> .
>
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel