Boot environment datasets that contain spaces are not bootable.
When a user attempts to create a boot environment with a space, abort
the creation and print an error message.
PR: 254441
Paths
| Differential D30194 Authored by rew on May 10 2021, 8:01 PM.
Details Summary Boot environment datasets that contain spaces are not bootable. When a user attempts to create a boot environment with a space, abort PR: 254441
Diff Detail
Event TimelineHerald added a subscriber: imp. · View Herald TranscriptMay 10 2021, 8:01 PM2021-05-10 20:01:42 (UTC+0) Harbormaster completed remote builds in B39106: Diff 88984.May 10 2021, 8:01 PM2021-05-10 20:01:43 (UTC+0) Comment Actions If there are other characters that need to be blocked, it might make sense to use strcspn. Although I think in this case, what you have here is fine. This revision is now accepted and ready to land.Jun 2 2021, 12:24 PM2021-06-02 12:24:27 (UTC+0) Closed by commit rG0e6549c87450: bectl(8): don't allow creation of boot environments with spaces (authored by rew). · Explain WhyJun 3 2021, 4:48 PM2021-06-03 16:48:47 (UTC+0) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 90366 sbin/bectl/bectl.c
sbin/bectl/tests/bectl_test.sh
|