diff options
author | simonb <simonb> | 1999-03-15 13:54:24 +0000 |
---|---|---|
committer | simonb <simonb> | 1999-03-15 13:54:24 +0000 |
commit | 50355a309fdf5479368a35a4acc0729e5283b620 (patch) | |
tree | 2f7af305b9185dcd8c7feb944fcaa152fb2d5777 /emulators/xcopilot | |
parent | 836ad0c38700e7f67eb9166d4ce72c9478ef8dd3 (diff) | |
download | pkgsrc-50355a309fdf5479368a35a4acc0729e5283b620.tar.gz |
Add / to rc directory name after stat() not before.
Patch has been sent to maintainer.
Diffstat (limited to 'emulators/xcopilot')
-rw-r--r-- | emulators/xcopilot/patches/patch-ae | 20 |
1 files changed, 20 insertions, 0 deletions
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; |