From bc80a26fcabe4422ded2ee87e739132f6f98a7a6 Mon Sep 17 00:00:00 2001 From: Thyagarajan Balakrishnan Date: Wed, 5 Oct 2011 11:28:34 +0300 Subject: [PATCH] Reverted: reverted the changes for wrong arguments by alexey which were wrongly pushed to master --- src/launcherlib/daemon.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/launcherlib/daemon.cpp b/src/launcherlib/daemon.cpp index 0ec9de2..4e3a851 100644 --- a/src/launcherlib/daemon.cpp +++ b/src/launcherlib/daemon.cpp @@ -654,7 +654,7 @@ void Daemon::daemonize() void Daemon::parseArgs(const ArgVect & args) { - for (ArgVect::const_iterator i(args.begin() + 1); i != args.end(); i++) + for (ArgVect::const_iterator i(args.begin()); i != args.end(); i++) { if ((*i) == "--boot-mode" || (*i) == "-b") { @@ -673,11 +673,6 @@ void Daemon::parseArgs(const ArgVect & args) { usage(EXIT_SUCCESS); } - else - { - if ((*i).find_first_not_of(' ') != string::npos) - usage(EXIT_FAILURE); - } } }