[DRBD-cvs] svn commit by phil - r2057 - branches/drbd-0.7/user -
The old code could (unter oscure conditions) lead to
drbd-cvs at lists.linbit.com
drbd-cvs at lists.linbit.com
Tue Jan 31 15:54:36 CET 2006
th
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Author: phil
Date: 2006-01-31 15:54:35 +0100 (Tue, 31 Jan 2006)
New Revision: 2057
Modified:
branches/drbd-0.7/user/drbdadm_main.c
Log:
The old code could (unter oscure conditions) lead to
the assure_module_loaded to fail in the init-script.
Modified: branches/drbd-0.7/user/drbdadm_main.c
===================================================================
--- branches/drbd-0.7/user/drbdadm_main.c 2006-01-29 11:40:33 UTC (rev 2056)
+++ branches/drbd-0.7/user/drbdadm_main.c 2006-01-31 14:54:35 UTC (rev 2057)
@@ -296,8 +296,11 @@
static int sh_resources(struct d_resource* ignored,char* unused)
{
struct d_resource *res,*t;
+ int first=1;
+
for_each_resource(res,t,config) {
- printf(res==config?"%s":" %s",esc(res->name));
+ printf(first?"%s":" %s",esc(res->name));
+ first=0;
}
printf("\n");
More information about the drbd-cvs
mailing list