fsirand.c (6149ed01a126d468431ecc4d20d0c00cb0040554) | fsirand.c (fb14e73cb4062d7272ce6183d748adedd868906b) |
---|---|
1/* $OpenBSD: fsirand.c,v 1.9 1997/02/28 00:46:33 millert Exp $ */ 2 3/*- 4 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 5 * 6 * Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com> 7 * All rights reserved. 8 * --- 112 unchanged lines hidden (view full) --- 121 warn("can't open %s", device); 122 return (1); 123 } 124 125 dp1 = NULL; 126 dp2 = NULL; 127 128 /* Read in master superblock */ | 1/* $OpenBSD: fsirand.c,v 1.9 1997/02/28 00:46:33 millert Exp $ */ 2 3/*- 4 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 5 * 6 * Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com> 7 * All rights reserved. 8 * --- 112 unchanged lines hidden (view full) --- 121 warn("can't open %s", device); 122 return (1); 123 } 124 125 dp1 = NULL; 126 dp2 = NULL; 127 128 /* Read in master superblock */ |
129 if ((ret = sbget(devfd, &sblock, -1)) != 0) { | 129 if ((ret = sbget(devfd, &sblock, STDSB)) != 0) { |
130 switch (ret) { 131 case ENOENT: 132 warn("Cannot find file system superblock"); 133 return (1); 134 default: 135 warn("Unable to read file system superblock"); 136 return (1); 137 } --- 98 unchanged lines hidden --- | 130 switch (ret) { 131 case ENOENT: 132 warn("Cannot find file system superblock"); 133 return (1); 134 default: 135 warn("Unable to read file system superblock"); 136 return (1); 137 } --- 98 unchanged lines hidden --- |