bugGNU Octave - Bugs: bug #61852, [Windows] no error when using...

 
 

bug #61852: [Windows] no error when using fopen (FNAME, 'w') in a directory without write permission

Submitter:  None
Submitted:  Tue 18 Jan 2022 11:34:35 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Missed Error or Warning
Status:  Works For Me Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 6.3.0
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 19 Jan 2022 08:06:29 PM UTC, comment #3: 

Thanks for testing.  So, even if there is a problem with 6.3.0, it is about to be replaced by Octave version 7.1 which works.

Marking as "Works for Me" and closing report.

Rik <rik5>
Group administrator
Wed 19 Jan 2022 07:58:30 PM UTC, comment #2: 

i get the error message with rc1 on win10:


>> cd "c:/windows"
>> [fir, msg] = fopen("tst.txt", "w")
fir = -1
msg = Permission denied
>> ver
----------------------------------------------------------------------
GNU Octave Version: 7.0.90 (hg id: 347dbc9049d5)
GNU Octave License: GNU General Public License
Operating System: MINGW32_NT-6.2 Windows 6.2  x86_64


Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Wed 19 Jan 2022 03:57:57 PM UTC, comment #1: 

This might be a Windows-only bug.  I just tested on my Linux machine and I get an immediate error:


[fid, msg] = fopen ('tst.txt', 'w')
fid = -1
msg = Permission denied


We need confirmation from someone else running Windows.

Rik <rik5>
Group administrator
Tue 18 Jan 2022 11:34:35 PM UTC, original submission:  

fopen ("file.txt", "w") no error in directory no write permission. Late error when write file. Early warning work better. Yes?

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by dasergatskov (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-01-19 rik5 StatusNeed Info Works For Me
        Open/ClosedOpen Closed
    2022-01-19 rik5 CategoryNone Interpreter
        Item GroupNone Missed Error or Warning
        StatusNone Need Info
        Summaryno error write no file no permission [Windows] no error when using fopen (FNAME, 'w') in a directory without write permission

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code