[Toybox] [PATCH] getenforce takes no arguments.

enh enh at google.com
Sat Mar 28 13:27:30 PDT 2015


getenforce takes no arguments.

diff --git a/toys/android/getenforce.c b/toys/android/getenforce.c
index 465452e..b828ce5 100644
--- a/toys/android/getenforce.c
+++ b/toys/android/getenforce.c
@@ -2,7 +2,7 @@
  *
  * Copyright 2014 The Android Open Source Project

-USE_GETENFORCE(NEWTOY(getenforce, "", TOYFLAG_USR|TOYFLAG_SBIN))
+USE_GETENFORCE(NEWTOY(getenforce, ">0", TOYFLAG_USR|TOYFLAG_SBIN))

 config GETENFORCE
   bool "getenforce"

 1427574450.0


More information about the Toybox mailing list