[Gambas-user] [Gambas Bug Tracker] Bug #940: Running IDE with a filename locks the file
bugtracker at ...3416...
bugtracker at ...3416...
Sun Jul 17 02:10:02 CEST 2016
http://gambaswiki.org/bugtracker/edit?object=BUG.940&from=L21haW4-
Comment #7 by Zainudin AHMAD:
reproduce the bug
- create "link directory" to other directory ( contain any gambas source or text file )
- open file from that's directory(link directory)
- the file is always read-only
sorry, this is the better patch.
diff -urNaX /tmp/gambas-patch-ignore a/.src/Project.module b/.src/Project.module
--- a/.src/Project.module 2016-07-17 06:48:48.000000000 +0700
+++ b/.src/Project.module 2016-07-17 06:49:41.000000000 +0700
@@ -5704,6 +5704,9 @@
If Not Exist(sPath) Then Return True
If Not Access(sPath, gb.Write) Then Return True
+ If Stat(sPath).Type = gb.Link Then Return True
+ If IsFake() Then Return
+
Do
If sPath = Project.Dir Or If sPath = "/" Or If Not sPath Then Break
If Stat(sPath).Type = gb.Link Then
More information about the User
mailing list