diff options
author | Jürg Billeter <j@bitron.ch> | 2020-02-10 07:37:35 +0100 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2020-02-10 07:37:35 +0100 |
commit | 9319c6fcc172b47f6305c1f110c83cd1b1706638 (patch) | |
tree | 7922665bddd9b5813b18387ec1d01d03bf3fac0c | |
parent | 7d8a23fd0a0dd6cdecef9e50a777c14644bc19fe (diff) | |
download | buildstream-9319c6fcc172b47f6305c1f110c83cd1b1706638.tar.gz |
utils.py: Drop device node support from _process_list()
This should not be needed. For non-privileged users `mknod()` will
anyway fail. Let's consistently mark it as unsupported.
-rw-r--r-- | src/buildstream/utils.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/buildstream/utils.py b/src/buildstream/utils.py index 9593f3e75..2b6c2761b 100644 --- a/src/buildstream/utils.py +++ b/src/buildstream/utils.py @@ -1059,17 +1059,6 @@ def _process_list( actionfunc(srcpath, destpath, result=result) - elif stat.S_ISCHR(mode) or stat.S_ISBLK(mode): - # Block or character device. Put contents of st_dev in a mknod. - if not safe_remove(destpath): - result.ignored.append(path) - continue - - if os.path.lexists(destpath): - os.remove(destpath) - os.mknod(destpath, file_stat.st_mode, file_stat.st_rdev) - os.chmod(destpath, file_stat.st_mode) - elif stat.S_ISFIFO(mode): os.mkfifo(destpath, mode) |