Encapsulating the atrocity of umask handling with Python's walrus operator:

os.umask(current_umask := os.umask(0))

This isn't clearly *better*, but at least it's clearly shorter. Without `:=`, we'd need two lines:

current_umask = os.umask(0)
os.umask(current_umask)

Note: The awkwardness is a necessary consequence of how POSIX handles umask. Also, neither version is threadsafe.

#Python #WalrusOperator #umask

Nextcloud umask – trial and error

Here’s a quick guide for those of you running nextcloud and have a very specific set of circumstances like I do, pertaining to the docker umask.

#2024 #docker #nextcloud #permissions #umask #unraid

https://novakeith.net/2024/03/22/nextcloud-umask-trial-and-error/

Tuntuu siltä, että #rolling-distroihin käynyt virta on tyystin tappanut perinteiset vakaat jakelut. Enää #Debian ja #UbuntuLTS ovat jäljellä, ja jälkimmäisessä on niin paljon inhottavaa (#Snap, outo #umask) josta eroonpääsy on tuskallista, ettei millään hotsittaisi.
Linux Essentials - umask

PeerTube
Mascherine U-Mask, che scandalo: ora indaga anche la Procura

La Procura di Milano indaga sulla trasparenza e l'efficienza delle mascherine U-Mask. L'azienda del dispositivo "distruggi batteri" è in stato d'accusa