patch-main.c 679 B

123456789101112131415161718192021
  1. --- main.c.orig 2020-10-02 14:29:21 UTC
  2. +++ main.c
  3. @@ -38,6 +38,17 @@
  4. /* Header files */
  5. #include "ibsh.h"
  6. +theuser loggedin; /* user info */
  7. +
  8. +Strng commands[MAX_ITEMS]; /* permitted commands */
  9. +Strng extensions[MAX_ITEMS]; /* permitted extensions */
  10. +char real_path[STRING_SIZE]; /* absolute path */
  11. +char jail_path[STRING_SIZE]; /* path inside the jail */
  12. +char user_command[STRING_SIZE]; /* whatever the user types */
  13. +char filtered_command[STRING_SIZE]; /* this one will be executed */
  14. +int exitcode;
  15. +
  16. +
  17. /* Main: */
  18. /* Handle arguments, read config files, start command processing. */
  19. /* IBSH doesnt use any command line arguments, but my text editor */