[DRBD-cvs] svn commit by phil - r2722 - trunk/user - Fixed the error reporting in case a higher priority con

drbd-cvs at lists.linbit.com drbd-cvs at lists.linbit.com
Tue Jan 30 17:46:28 CET 2007


Author: phil
Date: 2007-01-30 17:46:23 +0100 (Tue, 30 Jan 2007)
New Revision: 2722

Modified:
   trunk/user/drbdadm_main.c
Log:
Fixed the error reporting in case a higher priority config file is not 
found, but one with a lower priority is found.


Modified: trunk/user/drbdadm_main.c
===================================================================
--- trunk/user/drbdadm_main.c	2007-01-30 13:54:40 UTC (rev 2721)
+++ trunk/user/drbdadm_main.c	2007-01-30 16:46:23 UTC (rev 2722)
@@ -1636,13 +1636,11 @@
 	config_file = conf_file[i];
 	break;
       }
-      if (i) {
-	fprintf(stderr,"Can not open '%s': ",conf_file[i]);
-	perror("");
-      }
     } while (conf_file[++i]);
   }
   if(!config_file) {
+    fprintf(stderr,"Can not open '%s': ",conf_file[i-1]);
+    perror("");
     exit(E_config_invalid);
   }
 



More information about the drbd-cvs mailing list