Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107141836
D45306.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
429 B
Referenced Files
None
Subscribers
None
D45306.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D45306: nextboot: Permit ZFS boot filesystems mounted at the pool's root
Attached
Detach File
Event Timeline
Log In to Comment