aboutsummaryrefslogtreecommitdiffstats
path: root/iurt_root_command
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2017-10-04 18:43:01 +0100
committerPascal Terjan <pterjan@mageia.org>2017-10-04 20:04:57 +0100
commit90fe47509e924d561a1c2e07f06f194373a5a30e (patch)
treed66d4d7bdc442c4cd4015adfaba390259b6566b5 /iurt_root_command
parent129e1687b75d7dd0e23d60d735f9a5c7bffd5c3a (diff)
downloadiurt-90fe47509e924d561a1c2e07f06f194373a5a30e.tar
iurt-90fe47509e924d561a1c2e07f06f194373a5a30e.tar.gz
iurt-90fe47509e924d561a1c2e07f06f194373a5a30e.tar.bz2
iurt-90fe47509e924d561a1c2e07f06f194373a5a30e.tar.xz
iurt-90fe47509e924d561a1c2e07f06f194373a5a30e.zip
Fix typo
Diffstat (limited to 'iurt_root_command')
-rwxr-xr-xiurt_root_command8
1 files changed, 4 insertions, 4 deletions
diff --git a/iurt_root_command b/iurt_root_command
index df9b5e5..971b690 100755
--- a/iurt_root_command
+++ b/iurt_root_command
@@ -164,11 +164,11 @@ $run{todo} = [];
[ "", "netns_create", 1, "<directory>",
"create a network namespace",
- \&netfs_create, "Create network namespace for given chroot" ],
+ \&netns_create, "Create network namespace for given chroot" ],
[ "", "netns_delete", 1, "<directory>",
"delete a network namespace",
- \&netfs_delete, "Delete network namespace for given chroot, killing all processes" ],
+ \&netns_delete, "Delete network namespace for given chroot, killing all processes" ],
[ "", "useradd", 3, "<directory> <username> [uid]",
"Add user in given chroot",
@@ -413,7 +413,7 @@ sub btrfs_snapshot {
return !system("btrfs", "subvolume", "snapshot", $source, $dest);
}
-sub netfs_create {
+sub netns_create {
my ($_run, $dest) = @_;
check_path_authorized($dest) or return;
my $nsname = basename($dest);
@@ -425,7 +425,7 @@ sub netfs_create {
return 1;
}
-sub netfs_delete {
+sub netns_delete {
my ($_run, $dest) = @_;
check_path_authorized($dest) or return;
my $nsname = basename($dest);