]> git.ipfire.org Git - thirdparty/pciutils.git/commitdiff
setpci: Do not request read-write access when in demo mode.
authorMartin Mares <mj@ucw.cz>
Tue, 11 Nov 2008 09:13:32 +0000 (10:13 +0100)
committerMartin Mares <mj@ucw.cz>
Tue, 11 Nov 2008 09:13:32 +0000 (10:13 +0100)
setpci.c

index 17d98a800d98d4ccd77fc529ee6fc811d57d60d7..a0daddb6f32792e31b4bcc37f16895698e4ad109 100644 (file)
--- 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)