[Box Backup-commit] COMMIT r1711 - box/chris/merge/lib/server

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Sat Jun 30 12:53:15 BST 2007


Author: chris
Date: 2007-06-30 12:53:15 +0100 (Sat, 30 Jun 2007)
New Revision: 1711

Modified:
   box/chris/merge/lib/server/Daemon.cpp
Log:
Add extra debugging to help find out why getopt is behaving weirdly
on debian etch
(http://lists.warhead.org.uk/pipermail/boxbackup/2007-June/003603.html)


Modified: box/chris/merge/lib/server/Daemon.cpp
===================================================================
--- box/chris/merge/lib/server/Daemon.cpp	2007-06-30 11:22:56 UTC (rev 1710)
+++ box/chris/merge/lib/server/Daemon.cpp	2007-06-30 11:53:15 UTC (rev 1711)
@@ -124,6 +124,12 @@
 
 	while((c = getopt(argc, (char * const *)argv, "c:DFqvVt:Tk")) != -1)
 	{
+		BOX_TRACE("getopt: returned '" << c << "'");
+		BOX_TRACE("getopt: optind = " << optind);
+		BOX_TRACE("getopt: optopt = " << optopt);
+		BOX_TRACE("getopt: optarg = " << optarg);
+		BOX_TRACE("getopt: argv[optind] = " << argv[optind]);
+
 		switch(c)
 		{
 			case 'c':
@@ -212,6 +218,8 @@
 		}
 	}
 
+	BOX_TRACE("getopt: returned " << (int)c << ", finished.");
+
 	if (argc > optind && !haveConfigFile)
 	{
 		mConfigFileName = argv[optind]; optind++;




More information about the Boxbackup-commit mailing list