Skip to contentSkip to conversation

file sharing problems

DISCUSSION Arnaldo Pereira 2 participants 3 messages Jul 16, 2002

lore
Share & tools
lore
#0 lore raw
	Hi,

	I'm running a foxpro program under dosemu(1.1.3.2)+drdos(7.03).
	The foxpro system seems to work fine, but under some circunstances, it can't 

open a database file, especially when another user has already opened it.
It seems the foxpro application is trying to lock an unique database
register, but dosemu is locking the entire database file.
I've already tried the share.exe, but it works the same way as without it. Any thought about the solution ?
Thanks in advance.

Arnaldo Pereira.

#1 lore raw
Quoted 7 lines · Arnaldo Pereira
	I'm running a foxpro program under dosemu(1.1.3.2)+drdos(7.03).
	The foxpro system seems to work fine, but under some circunstances, it can't 

open a database file, especially when another user has already opened it.
It seems the foxpro application is trying to lock an unique database
register, but dosemu is locking the entire database file.
I've already tried the share.exe, but it works the same way as without it. Any thought about the solution ?

Could you try this patch and see if it makes any difference?

Bart

src/dosext/mfs/mangle.c +2 -1
diff -ur -x*.o -x*~ -x*.d dosemu-1.1.3.2/src/dosext/mfs/mangle.c dosemu-1.1.3.3/src/dosext/mfs/mangle.c
@@ -149,6 +149,7 @@
 {
   int len = strlen(fname);
   char *dot_pos = strchr(fname,'.');
+  char *s;
   int l;
 
   DEBUG(5,("checking %s for 8.3\n",fname));
@@ -158,7 +159,7 @@
     return(False);
 
   /* can't be an MS-DOS Special file such as lpt1 or even lpt1.txt */
-  if (is_reserved_msdos(fname))
+  if ((s = is_reserved_msdos(fname)) && strcmp(s, "NUL") != 0)
     return(False);
 
   /* can't contain invalid dos chars */
src/dosext/mfs/mfs.c +154 -73

341 lines not on this page · raw message

src/dosext/mfs/mfs.h +1 -1
diff -ur -x*.o -x*~ -x*.d dosemu-1.1.3.2/src/dosext/mfs/mfs.h dosemu-1.1.3.3/src/dosext/mfs/mfs.h
@@ -387,7 +387,7 @@
 #define DENY_ALL	0x01
 #define DENY_WRITE	0x02
 #define DENY_READ	0x03
-#define DENY_ANY	0x04
+#define DENY_NONE	0x04
 
 #define CHILD_INHERIT	0x00
 #define NO_INHERIT	0x01
#2 lore raw
Quoted 10 lines · Bart Oldeman
Quoted 7 lines · Arnaldo Pereira
	I'm running a foxpro program under dosemu(1.1.3.2)+drdos(7.03).
	The foxpro system seems to work fine, but under some circunstances, it

can't open a database file, especially when another user has already opened it. It seems the foxpro application is trying to lock an unique database register, but dosemu is locking the entire database file.
I've already tried the share.exe, but it works the same way as without
it. Any thought about the solution ?

Could you try this patch and see if it makes any difference?

Thanks for helping.
I'm sad to say it didn't make any difference..
Maybe it's the foxpro code that locks the entire file, I'll check it again,
but I don't think this is the problem.

Arnaldo