Skip to content

Commit df1f441

Browse files
committed
non: sync submodule update
1 parent 85a0194 commit df1f441

File tree

3 files changed

+3
-33
lines changed

3 files changed

+3
-33
lines changed

src/catsh

src/subcommand.c

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -872,35 +872,5 @@ void rurima_load_rootfs(int argc, char **argv)
872872
}
873873
void rurima_sfx(int argc, char **_Nonnull argv)
874874
{
875-
//
876-
if (self_is_valid_ssfx_master()) {
877-
rurima_log("{base}This is a valid rurima sfx master executable.\n");
878-
} else if (self_is_valid_ssfx_pack()) {
879-
rurima_log("{base}This is a valid rurima sfx packed executable.\n");
880-
} else if (self_is_valid_ssfx_other()) {
881-
rurima_log("{base}This is a valid rurima sfx other executable.\n");
882-
} else {
883-
rurima_log("{base}This is not a valid rurima sfx executable.\n");
884-
}
885-
cprintf("{red}Warning: rurima sfx feature is in development, do not use it anyway!\n");
886-
//
887-
if (argc == 0) {
888-
rurima_error("{red}No subcommand specified!\n");
889-
}
890-
if (strcmp(argv[0], "pack-self") == 0) {
891-
if (argc < 3) {
892-
rurima_error("{red}Usage: rurima sfx pack-self <output_file> <input_dir>\n");
893-
}
894-
char *tar_exe_path = argv[1];
895-
char *output_file = argv[2];
896-
rurima_check_dir_deny_list(output_file);
897-
pack_ssfx_master(tar_exe_path, output_file);
898-
cprintf("{yellow}Warning: this feature is only for developers!\n");
899-
cprintf("{yellow}Warning: make sure that tar and rurima executable are compatible with target system!\n");
900-
cprintf("{yellow}Warning: make sure that tar and rurima executable are statically linked!\n");
901-
exit(0);
902-
}
903-
if (!self_is_valid_ssfx_master()) {
904-
rurima_error("{red}This executable is not a valid rurima sfx master!\n");
905-
}
875+
rurima_error("{red}Not implemented yet!\n");
906876
}

0 commit comments

Comments
 (0)