diff options
author | Roland McGrath <roland@gnu.org> | 1999-11-21 04:23:17 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1999-11-21 04:23:17 +0000 |
commit | 3b3d781e4b74a6cf83faa3eb593f7d66b19b9876 (patch) | |
tree | 587c496424c43f220f9daaf3e2bd34181a6983d2 | |
parent | f3b3030d40001211bdc72d8005bafb6bdf9881d7 (diff) |
1999-11-20 Roland McGrath <roland@baalperazim.frob.com>
* dlabel.c (fd_get_device): Check STORE->class->id, not STORE->class.
-rw-r--r-- | ufs-utils/dlabel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ufs-utils/dlabel.c b/ufs-utils/dlabel.c index a51fc8ec..1bb30bbc 100644 --- a/ufs-utils/dlabel.c +++ b/ufs-utils/dlabel.c @@ -1,8 +1,8 @@ /* Get the disklabel from a device node - Copyright (C) 1996 Free Software Foundation, Inc. + Copyright (C) 1996, 1999 Free Software Foundation, Inc. - Written by Miles Bader <miles@gnu.ai.mit.edu> + Written by Miles Bader <miles@gnu.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -46,7 +46,7 @@ fd_get_device (int fd, device_t *device) err = store_create (node, 0, 0, &store); if (! err) { - if (store->class != STORAGE_DEVICE + if (store->class->id != STORAGE_DEVICE /* In addition to requiring a device, we also want the *whole* device -- one contiguous run starting at 0. */ || store->num_runs != 1 |