Page MenuHomeFreeBSD

D45306.diff
No OneTemporary

D45306.diff

diff --git a/sbin/reboot/reboot.c b/sbin/reboot/reboot.c
--- a/sbin/reboot/reboot.c
+++ b/sbin/reboot/reboot.c
@@ -134,9 +134,9 @@
if (zfs) {
char *slash;
- if ((slash = strchr(sfs.f_mntfromname, '/')) == NULL)
- E("Can't find ZFS pool name in %s", sfs.f_mntfromname);
- *slash = '\0';
+ slash = strchr(sfs.f_mntfromname, '/');
+ if (slash != NULL)
+ *slash = '\0';
zfsbootcfg(sfs.f_mntfromname, force);
}

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 11, 6:36 PM (20 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15756726
Default Alt Text
D45306.diff (429 B)

Event Timeline