Ticket #2894 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Change avatar may fail on multi-user system

Reported by: david douard Owned by: asterix
Priority: normal Milestone: 0.11.1
Component: preferences Version: 0.11
Severity: major Keywords:
Cc: OS:

Description

If 2 persons logged on the same Unix system wants to change their avator pict, it will fail if gajim create a '/tmp/avatar_scaled.png' for person A (it does not remove it after use), and user B does the same a short time after. The file then exists, owner by A, thus B cannot write it.

Attached is a small patch to assert this.

David

Attachments

avatar_tmp_file.patch (1.3 kB) - added by david.douard at gmail.com 2 years ago.
patch file for the reported bug

Change History

Changed 2 years ago by david.douard at gmail.com

patch file for the reported bug

Changed 2 years ago by asterix

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to 0.11.1

(In [7826]) remove temp file once we don't need it anymore. fixes #2894

Add/Change #2894 (Change avatar may fail on multi-user system)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.