[Piuparts-devel] [Git][debian/piuparts][develop] Create /dev/ptmx like debootstrap does

Mathieu Parent gitlab at salsa.debian.org
Wed Oct 17 06:20:20 BST 2018


Mathieu Parent pushed to branch develop at Debian / piuparts


Commits:
0d5f8bbb by Mathieu Parent at 2018-10-17T05:20:16Z
Create /dev/ptmx like debootstrap does

Fixup for previous commit
- - - - -


1 changed file:

- piuparts.py


Changes:

=====================================
piuparts.py
=====================================
@@ -1757,7 +1757,7 @@ class Chroot:
         dev_ptmx_rel_path = self.relative("dev/ptmx")
         if not os.path.exists(dev_ptmx_rel_path):
             try:
-                os.mknod(dev_ptmx_rel_path, 0666, os.makedev(5, 2))
+                os.mknod(dev_ptmx_rel_path, 0666 | stat.S_IFCHR, os.makedev(5, 2))
             except:
                 os.symlink("pts/ptmx", dev_ptmx_rel_path)
         p = subprocess.Popen(["tty"], stdout=subprocess.PIPE)



View it on GitLab: https://salsa.debian.org/debian/piuparts/commit/0d5f8bbbb8e5368a932be1fe4816c8dd1c68ddcd

-- 
View it on GitLab: https://salsa.debian.org/debian/piuparts/commit/0d5f8bbbb8e5368a932be1fe4816c8dd1c68ddcd
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/20181017/580d3bb5/attachment.html>


More information about the Piuparts-devel mailing list