Page MenuHomeFreeBSD

D44406.diff
No OneTemporary

D44406.diff

diff --git a/sbin/bectl/bectl.c b/sbin/bectl/bectl.c
--- a/sbin/bectl/bectl.c
+++ b/sbin/bectl/bectl.c
@@ -114,7 +114,9 @@
{ "mount", bectl_cmd_mount, false },
{ "rename", bectl_cmd_rename, false },
{ "unjail", bectl_cmd_unjail, false },
+ { "ujail", bectl_cmd_unjail, false },
{ "unmount", bectl_cmd_unmount, false },
+ { "umount", bectl_cmd_unmount, false },
{ "check", bectl_cmd_check, true },
};
@@ -570,13 +572,6 @@
optreset = 1;
optind = 1;
- /* Handle command aliases */
- if (strcmp(command, "umount") == 0)
- command = "unmount";
-
- if (strcmp(command, "ujail") == 0)
- command = "unjail";
-
if ((cmd = get_cmd_info(command)) == NULL) {
fprintf(stderr, "Unknown command: %s\n", command);
return (usage(false));

File Metadata

Mime Type
text/plain
Expires
Wed, Feb 5, 12:47 PM (21 h, 45 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16474559
Default Alt Text
D44406.diff (789 B)

Event Timeline