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-11 11:07:19 +0100 |
commit | 187065451b7c0a43ee6c7ae02894b4d7b9326620 (patch) | |
tree | 4d35b80e35261d7fcd95e11a539da227a23302d4 | |
parent | 918e203d96aa5f00bd0731708c474db7842b4cba (diff) | |
download | buildstream-187065451b7c0a43ee6c7ae02894b4d7b9326620.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 890b647fc..b588566df 100644 --- a/src/buildstream/utils.py +++ b/src/buildstream/utils.py @@ -1047,17 +1047,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) |