From 50355a309fdf5479368a35a4acc0729e5283b620 Mon Sep 17 00:00:00 2001 From: simonb Date: Mon, 15 Mar 1999 13:54:24 +0000 Subject: Add / to rc directory name after stat() not before. Patch has been sent to maintainer. --- emulators/xcopilot/patches/patch-ae | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 emulators/xcopilot/patches/patch-ae (limited to 'emulators/xcopilot') diff --git a/emulators/xcopilot/patches/patch-ae b/emulators/xcopilot/patches/patch-ae new file mode 100644 index 00000000000..77403fde874 --- /dev/null +++ b/emulators/xcopilot/patches/patch-ae @@ -0,0 +1,20 @@ +$NetBSD: patch-ae,v 1.1 1999/03/15 13:54:24 simonb Exp $ + +--- main.c.orig Tue Aug 25 15:06:36 1998 ++++ main.c Tue Mar 16 00:45:28 1999 +@@ -638,7 +638,6 @@ + struct stat buf; + + expand_tilde(&pilot->DataDir); +- add_slash(&pilot->DataDir); + if (stat(pilot->DataDir, &buf) == -1) { + if (errno == ENOENT) { + if (mkdir(pilot->DataDir, S_IRWXU)) { +@@ -651,6 +650,7 @@ + exit(1); + } + } ++ add_slash(&pilot->DataDir); + + /* Set the memory version */ + pdebug_memversion = pilot->MemVersion; -- cgit v1.2.3