Skip to content

Conversation

@ahmedbilal9
Copy link
Contributor

@ahmedbilal9 ahmedbilal9 commented Nov 24, 2025

Changes or fixes:

Replace hardcoded 0644 file permissions with 0666 to respect system umask.

This change allows the system umask to control file permissions instead of hardcoding them to 0644. Files will now be created with permissions determined by (0666 & ~umask), which is the standard Unix behavior.

Files modified:

  • io/io/src/TFile.cxx
  • io/io/src/TMapFile.cxx
  • io/io/src/TMemFile.cxx
  • io/dcache/src/TDCacheFile.cxx
  • net/net/src/TFTP.cxx
  • net/net/src/TApplicationServer.cxx

Checklist:

  • tested changes locally
  • updated the docs (if necessary)

This PR fixes #20470

This change allows the system umask to control file permissions
instead of hardcoding them to 0644. Files will now be created with
permissions determined by (0666 & ~umask), which is the standard
Unix behavior.

Files modified:
- io/io/src/TFile.cxx
- io/io/src/TMapFile.cxx
- io/io/src/TMemFile.cxx
- io/dcache/src/TDCacheFile.cxx
- net/net/src/TFTP.cxx
- net/net/src/TApplicationServer.cxx

Fixes root-project#17095
@ahmedbilal9 ahmedbilal9 requested a review from pcanal as a code owner November 24, 2025 18:55
@ferdymercury
Copy link
Collaborator

fixes #17095

You mean #20470 ?

@ahmedbilal9
Copy link
Contributor Author

fixes #17095

You mean #20470 ?

pardon me, yes!

@github-actions
Copy link

Test Results

    22 files      22 suites   3d 22h 5m 4s ⏱️
 3 781 tests  3 781 ✅ 0 💤 0 ❌
81 148 runs  81 148 ✅ 0 💤 0 ❌

Results for commit fed7ac7.

@dpiparo dpiparo self-assigned this Nov 25, 2025
@dpiparo dpiparo requested review from hahnjo and silverweed November 25, 2025 05:37
@dpiparo
Copy link
Member

dpiparo commented Nov 25, 2025

Added two Linux and experts as reviewers.

@dpiparo dpiparo assigned pcanal and unassigned pcanal Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ROOT still uses hard-coded open mode flags, overriding umask and ACL settings

4 participants