Menu

#202 chown failure

None
closed
None
5
2016-12-05
2016-09-18
No
procedure main()
    # Change owner of file, usually only superusers can do this
    write(image(chown("chown.icn", "nobody", "nobody")))
end

causes a memory violation

$ unicon -s chown.icn -x

Run-time error 302
File chown.icn; Line 12
memory violation
Traceback:
   main()
   chown("chown.icn","nobody","nobody") from line 12 in chown.icn

Rev [r4544]

Related

Commit: [r4544]

Discussion

  • Clinton Jeffery

    Clinton Jeffery - 2016-09-18
    • status: open --> pending-fixed
    • assigned_to: Clinton Jeffery
    • Group: -->
     
  • Clinton Jeffery

    Clinton Jeffery - 2016-09-18

    Thanks for the report. When someone made this thread-safe, they did not add the 2nd check for failure required by the new thread-safe function.

     
  • Clinton Jeffery

    Clinton Jeffery - 2016-12-05
    • status: pending-fixed --> closed
     

Log in to post a comment.