Package: flashplugin-nonfree
Version: 1:3.6.1
Severity: minor

The subject pretty well says it all.  update-flashplugin-nonfree --status
shouldn't fail saying it needs root (checking status doesn't!).


-- 
(\___(\___(\______          --=> 8-) EHM <=--          ______/)___/)___/)
 \BS (    |         ehem+sig...@m5p.com  PGP 87145445         |    )   /
  \_CS\   |  _____  -O #include <stddisclaimer.h> O-   _____  |   /  _/
8A19\___\_|_/58D2 7E3D DDF4 7BA6 <-PGP-> 41D1 B375 37D0 8714\_|_/___/5445


--- /usr/sbin/update-flashplugin-nonfree.orig	2014-09-15 08:33:57.000000000 -0700
+++ /usr/sbin/update-flashplugin-nonfree	2016-06-02 18:07:54.000000000 -0700
@@ -29,8 +29,6 @@
 	exit 1
 }
 
-[ `whoami` = "root" ] || die_hard "must be root"
-
 show_usage() {
 	echo "Usage:"
 	echo "  update-flashplugin-nonfree --install"
@@ -96,7 +94,16 @@
 	esac
 done
 
-[ "$ACTION" != "none" -a $# -eq 0 ] || show_usage
+case "$ACTION" in
+	--install|--uninstall)
+		die_hard "must be root"
+
+	;;
+	none)
+		[ $# -eq 0 ] || show_usage
+	;;
+esac
+
 [ "$quiet" != "yes" ] || verbose=no
 
 [ "$verbose" != "yes" ] || echo "options : $getopt_temp"

Reply via email to