1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 18:57:34 +00:00

Port: Nano

An early step towards a fully functional nano.
This commit is contained in:
Brandon Scott 2019-11-16 04:42:07 -06:00 committed by Andreas Kling
parent 3069988a75
commit 0414e39035
3 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,12 @@
diff -ru nano-4.5-original/nano-4.5/src/files.c nano-4.5/src/files.c
--- nano-4.5-original/nano-4.5/src/files.c 2019-10-04 04:38:05.000000000 -0500
+++ nano-4.5/src/files.c 2019-11-13 02:17:33.268207958 -0600
@@ -31,6 +31,7 @@
#include <unistd.h>
#define LOCKBUFSIZE 8192
+#define P_tmpdir "/tmp"
/* Verify that the containing directory of the given filename exists. */
bool has_valid_path(const char *filename)