From: Martin Mares Date: Tue, 11 Nov 2008 09:13:32 +0000 (+0100) Subject: setpci: Do not request read-write access when in demo mode. X-Git-Tag: v3.1-alpha1~7 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=89caa7b8f22bbd2e4ce88bc02d9db7e562a0a3f3;p=pciutils.git setpci: Do not request read-write access when in demo mode. --- diff --git a/setpci.c b/setpci.c index 17d98a8..a0daddb 100644 --- a/setpci.c +++ b/setpci.c @@ -187,6 +187,8 @@ execute(struct op *op) static void scan_ops(struct op *op) { + if (demo_mode) + return; while (op) { if (op->num_values)