aboutsummaryrefslogtreecommitdiff
path: root/emulators/twin/files/patch-msdos+mfs_fileio.c
diff options
context:
space:
mode:
authorMaho Nakata <maho@FreeBSD.org>2003-08-09 01:54:39 +0000
committerMaho Nakata <maho@FreeBSD.org>2003-08-09 01:54:39 +0000
commitef2d7db001903b9e99d291df30cdd254132c7512 (patch)
tree80fdf042dd43953b0c46b40df376c2fc21b49778 /emulators/twin/files/patch-msdos+mfs_fileio.c
parentd92149802ce6c2211ee9bf8b1087580bff6ce684 (diff)
downloadports-ef2d7db001903b9e99d291df30cdd254132c7512.tar.gz
ports-ef2d7db001903b9e99d291df30cdd254132c7512.zip
Notes
Diffstat (limited to 'emulators/twin/files/patch-msdos+mfs_fileio.c')
-rw-r--r--emulators/twin/files/patch-msdos+mfs_fileio.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/emulators/twin/files/patch-msdos+mfs_fileio.c b/emulators/twin/files/patch-msdos+mfs_fileio.c
new file mode 100644
index 000000000000..bc35af4b769e
--- /dev/null
+++ b/emulators/twin/files/patch-msdos+mfs_fileio.c
@@ -0,0 +1,22 @@
+--- msdos/mfs_fileio.c.orig Sat Aug 2 16:02:08 2003
++++ msdos/mfs_fileio.c Sat Aug 2 16:03:20 2003
+@@ -213,8 +213,7 @@
+ (strcmp(filename, xdos.fileio[slot].filename) == 0) ) {
+ /* Get the handle */
+ if ((handle = gethandle()) < 0) {
+- ERRSTR((LF_ERROR,"mfs_delete cannot get handle for file %s %d
+- %d\n", filename, errno, slot));
++ ERRSTR((LF_ERROR,"mfs_delete cannot get handle for file %s %d %d\n", filename, errno, slot));
+ return MAKELONG(NO_HANDLES & 0xffff,0xffff);
+ }
+ xdos.fileptr[handle] = &xdos.fileio[slot];
+@@ -232,8 +231,7 @@
+ return unlink(filename);
+ }
+ }
+- else ERRSTR((LF_ERROR,"mfs_delete : invalid handle %d for file
+-%s\n",handle, filename));
++ else ERRSTR((LF_ERROR,"mfs_delete : invalid handle %d for file %s\n",handle, filename));
+ }
+ }
+ /* At this point, either the file was fclosed by us, or it was