[Piuparts-devel] [Git][debian/piuparts][override-umask] Override umask when creating device nodes
Stefano Rivera (@stefanor)
gitlab at salsa.debian.org
Tue Feb 27 14:26:25 GMT 2024
Stefano Rivera pushed to branch override-umask at Debian / piuparts
Commits:
83666443 by Stefano Rivera at 2024-02-27T10:25:41-04:00
Override umask when creating device nodes
Closes: #1064842
- - - - -
2 changed files:
- debian/changelog
- piuparts.py
Changes:
=====================================
debian/changelog
=====================================
@@ -1,8 +1,13 @@
piuparts (1.3.1) UNRELEASED; urgency=medium
+ [ Nicolas Dandrimont ]
* Start 1.3.1 development. Use `gbp dch --since=1.3 --multimaint-merge`
to generate a changelog for this release.
+ [ Stefano Rivera ]
+ * Explicitly set the mode on device nodes created by piuparts, overriding
+ umask. (Closes: #1064842)
+
-- Nicolas Dandrimont <olasd at debian.org> Sat, 13 Jan 2024 15:14:04 +0100
piuparts (1.3) unstable; urgency=medium
=====================================
piuparts.py
=====================================
@@ -1236,6 +1236,7 @@ class Chroot:
# mounting them individually.
try:
os.mknod(self.name + devname, stat.S_IFCHR | 0o666, devnum)
+ os.chmod(self.name + devname, 0o666) # Override umask
isdevice = True
except OSError as err:
if err.errno != errno.EPERM:
View it on GitLab: https://salsa.debian.org/debian/piuparts/-/commit/836664432bc1a0c2d11f57b06e5ddb0689fdb80f
--
View it on GitLab: https://salsa.debian.org/debian/piuparts/-/commit/836664432bc1a0c2d11f57b06e5ddb0689fdb80f
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/piuparts-devel/attachments/20240227/142ff048/attachment-0001.htm>
More information about the Piuparts-devel
mailing list