Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 641d3e8e authored by Elliott Hughes's avatar Elliott Hughes
Browse files

Remove chdir from init.

Change-Id: Ib2880c6cb18db613deac04ee3b06b9719f5248b9
parent c353c912
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -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]);
+0 −1
Original line number Diff line number Diff line
@@ -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;
+0 −2
Original line number Diff line number Diff line
#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)
+0 −3
Original line number Diff line number Diff line
@@ -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.