commit - 725ac0232249dba01d28f143d336b1fa44aa8d88
commit + 5d347732f9c03aa6cb052b50baf5344eb152cfc2
blob - 1c36f4b22ed2941ff9d024d09af827110ff8e899
blob + 22b597d198e21820ade37b3ea22984bba7cacaff
--- fm.c
+++ fm.c
DIR *d;
FILE *save_cwd_file = NULL;
FILE *save_marks_file = NULL;
+
+ if (pledge("stdio rpath wpath cpath tty proc exec", NULL) == -1)
+ err(1, "pledge");
while ((ch = getopt_long(argc, argv, "d:hm:v", opts, NULL)) != -1) {
switch (ch) {
}
}
- if (pledge("stdio rpath wpath cpath tty proc exec", NULL) == -1)
- err(1, "pledge");
-
get_user_programs();
init_term();
fm.nfiles = 0;