[ovs-dev] [PATCH] ovs-lib: don't log service status operation

Flavio Leitner fbl at redhat.com
Thu Feb 27 02:19:15 UTC 2014


It prevents non-root users to check service status.

Signed-off-by: Flavio Leitner <fbl at redhat.com>
---
 utilities/ovs-lib.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/utilities/ovs-lib.in b/utilities/ovs-lib.in
index 029ed3b..f14862d 100644
--- a/utilities/ovs-lib.in
+++ b/utilities/ovs-lib.in
@@ -51,10 +51,10 @@ ovs_ctl () {
         ;;
         "status")
             # In case of the command 'status', we should return the exit status
-            # of ovs-ctl. It is also useful to document the o/p in ovs-ctl.log.
+            # of ovs-ctl.
             display=`"${datadir}/scripts/ovs-ctl" "$@" 2>&1`
             rc=$?
-            echo "${display}" | tee -a "${logdir}/ovs-ctl.log"
+            echo "${display}"
             return ${rc}
         ;;
         *)
-- 
1.8.5.3




More information about the dev mailing list