summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-02-26 23:33:06 +0000
committerMiles Bader <miles@gnu.org>1997-02-26 23:33:06 +0000
commite1175ff7feacee6418eadab8b59518a8d2d08b74 (patch)
treebdaac714a70fa380722731ee2fe8cddd8109e64e /utils
parent977f3b3260f4aacc2977699c0dd21f0da626acc3 (diff)
(main):
Open device read-only.
Diffstat (limited to 'utils')
-rw-r--r--utils/devprobe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/devprobe.c b/utils/devprobe.c
index e8f40902..fb4be6d0 100644
--- a/utils/devprobe.c
+++ b/utils/devprobe.c
@@ -72,7 +72,7 @@ main (int argc, char **argv)
argp_failure (state, 3, err, "Can't get device master port");
}
- err = device_open (device_master, 0, arg, &device);
+ err = device_open (device_master, D_READ, arg, &device);
if (err == 0)
/* Got it. */
{