summaryrefslogtreecommitdiffstats
path: root/mac/tclMacResource.c
diff options
context:
space:
mode:
authorjingham <jingham@noemail.net>1999-08-15 04:54:03 (GMT)
committerjingham <jingham@noemail.net>1999-08-15 04:54:03 (GMT)
commitedba82f181b3d823985306a8fc8b8fab1ce6a358 (patch)
tree3e1447ee115ca6be1dd70ba2019db55d26ce45ae /mac/tclMacResource.c
parent5f57c4142fe3a50ce5f10a54cc1107a59867b5b7 (diff)
downloadtcl-edba82f181b3d823985306a8fc8b8fab1ce6a358.zip
tcl-edba82f181b3d823985306a8fc8b8fab1ce6a358.tar.gz
tcl-edba82f181b3d823985306a8fc8b8fab1ce6a358.tar.bz2
Change the permissions for opening resource files to Shared. Suprisingly enough, this is the only way to get notification if you have opened the file twice...
FossilOrigin-Name: ba2d9e8c517dfd852cf715c692597306b65cc3b3
Diffstat (limited to 'mac/tclMacResource.c')
-rw-r--r--mac/tclMacResource.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mac/tclMacResource.c b/mac/tclMacResource.c
index 0c1a372..4362ede 100644
--- a/mac/tclMacResource.c
+++ b/mac/tclMacResource.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclMacResource.c,v 1.6 1999/04/28 17:06:07 stanton Exp $
+ * RCS: @(#) $Id: tclMacResource.c,v 1.7 1999/08/15 04:54:03 jingham Exp $
*/
#include <Errors.h>
@@ -537,7 +537,7 @@ resourceRef? resourceType");
break;
case O_WRONLY:
case O_RDWR:
- macPermision = fsRdWrPerm;
+ macPermision = fsRdWrShPerm;
break;
default:
panic("Tcl_ResourceObjCmd: invalid mode value");
@@ -559,7 +559,7 @@ resourceRef? resourceType");
if (fileRef == -1) {
err = ResError();
if (((err == fnfErr) || (err == eofErr)) &&
- (macPermision == fsRdWrPerm)) {
+ (macPermision == fsRdWrShPerm)) {
/*
* No resource fork existed for this file. Since we are
* opening it for writing we will create the resource fork