summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-03-15 10:52:20 -0700
committerElliott Hughes <enh@google.com>2015-03-15 10:52:20 -0700
commit641d3e8ea066beaed6f8ad8a3e71f1737bffc0cc (patch)
treeb9f789c04d92f3202c4cfcf607817d6e9631d119 /init
parentc353c912a7ed29d53305412b1450136a25f922bd (diff)
downloadcore-641d3e8ea066beaed6f8ad8a3e71f1737bffc0cc.tar.gz
core-641d3e8ea066beaed6f8ad8a3e71f1737bffc0cc.tar.bz2
core-641d3e8ea066beaed6f8ad8a3e71f1737bffc0cc.zip
Remove chdir from init.
Change-Id: Ib2880c6cb18db613deac04ee3b06b9719f5248b9
Diffstat (limited to 'init')
-rw-r--r--init/builtins.cpp6
-rw-r--r--init/init_parser.cpp1
-rw-r--r--init/keywords.h2
-rw-r--r--init/readme.txt3
4 files changed, 0 insertions, 12 deletions
diff --git a/init/builtins.cpp b/init/builtins.cpp
index 5d1ad296e..543f89bfd 100644
--- a/init/builtins.cpp
+++ b/init/builtins.cpp
@@ -104,12 +104,6 @@ static void service_start_if_not_disabled(struct service *svc)
}
}
-int do_chdir(int nargs, char **args)
-{
- chdir(args[1]);
- return 0;
-}
-
int do_chroot(int nargs, char **args)
{
chroot(args[1]);
diff --git a/init/init_parser.cpp b/init/init_parser.cpp
index 7f8e30229..5ef54c8fe 100644
--- a/init/init_parser.cpp
+++ b/init/init_parser.cpp
@@ -121,7 +121,6 @@ static int lookup_keyword(const char *s)
case 'c':
if (!strcmp(s, "opy")) return K_copy;
if (!strcmp(s, "apability")) return K_capability;
- if (!strcmp(s, "hdir")) return K_chdir;
if (!strcmp(s, "hroot")) return K_chroot;
if (!strcmp(s, "lass")) return K_class;
if (!strcmp(s, "lass_start")) return K_class_start;
diff --git a/init/keywords.h b/init/keywords.h
index 0b37e27d2..4af8c9e90 100644
--- a/init/keywords.h
+++ b/init/keywords.h
@@ -1,7 +1,6 @@
#ifndef KEYWORD
int do_bootchart_init(int nargs, char **args);
int do_chroot(int nargs, char **args);
-int do_chdir(int nargs, char **args);
int do_class_start(int nargs, char **args);
int do_class_stop(int nargs, char **args);
int do_class_reset(int nargs, char **args);
@@ -46,7 +45,6 @@ enum {
K_UNKNOWN,
#endif
KEYWORD(capability, OPTION, 0, 0)
- KEYWORD(chdir, COMMAND, 1, do_chdir)
KEYWORD(chroot, COMMAND, 1, do_chroot)
KEYWORD(class, OPTION, 0, 0)
KEYWORD(class_start, COMMAND, 1, do_class_start)
diff --git a/init/readme.txt b/init/readme.txt
index 368eba191..0a85a9552 100644
--- a/init/readme.txt
+++ b/init/readme.txt
@@ -164,9 +164,6 @@ import <filename>
hostname <name>
Set the host name.
-chdir <directory>
- Change working directory.
-
chmod <octal-mode> <path>
Change file access permissions.