Received: from vm-880ce097-a00b-4968-9acd-683aab1f0777.ams.resource.cloud (vm-880ce097-a00b-4968-9acd-683aab1f0777.ams.resource.cloud [83.96.203.202]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 5BCB4782CB6 for <~alpine/users@lists.alpinelinux.org>; Thu, 23 Jan 2020 22:39:17 +0000 (UTC) To: ~alpine/users@lists.alpinelinux.org From: alpine@zxv.nl Subject: kernel 5.5 busybox rm: can't remove: Directory not empty Message-ID: Date: Thu, 23 Jan 2020 23:39:17 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit While trying the kernel 5.5 release candidate for Fedora 31 I'm running into an issue with busybox rm where it seems unable to recursively remove directories with specific content, leaving one seemingly random file. It doesn't happen with fedora's busybox, going back to kernel 5.4 or installing coreutils fixes the problem. Steps to reproduce: $ docker run -ti --rm alpine:3.11.3 / # uname -a Linux 258313de78b9 5.5.0-0.rc6.git0.1.fc32.x86_64 #1 SMP Mon Jan 13 18:52:03 UTC 2020 x86_64 Linux / # wget https://github.com/michaelrsweet/htmldoc/releases/download/v1.9.7/htmldoc-1.9.7-source.tar.gz Connecting to github.com (140.82.118.4:443) Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (52.216.22.11:443) saving to 'htmldoc-1.9.7-source.tar.gz' htmldoc-1.9.7-source 100% |****************************************************************************************************************| 4360k 0:00:00 ETA 'htmldoc-1.9.7-source.tar.gz' saved / # tar xf htmldoc-1.9.7-source.tar.gz / # rm -rf htmldoc-1.9.7 rm: can't remove 'htmldoc-1.9.7/fonts': Directory not empty rm: can't remove 'htmldoc-1.9.7/jpeg': Directory not empty / # rm -rf htmldoc-1.9.7 / # Another reproducer where it breaks building docker php based images that add the mysqli extension: $ docker run --rm php:alpine docker-php-ext-install mysqli fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/community/x86_64/APKINDEX.tar.gz (1/25) Installing m4 (1.4.18-r1) (2/25) Installing libbz2 (1.0.8-r1) (3/25) Installing perl (5.30.1-r0) ... (23/25) Purging mpc1 (1.1.0-r1) (24/25) Purging mpfr4 (4.0.2-r1) (25/25) Purging gmp (6.1.2-r1) Executing busybox-1.31.1-r9.trigger OK: 19 MiB in 32 packages rm: can't remove '/usr/src/php/sapi/phpdbg/tests': Directory not empty rm: can't remove '/usr/src/php/ext/sockets/tests': Directory not empty rm: can't remove '/usr/src/php/ext/ffi/tests': Directory not empty rm: can't remove '/usr/src/php/ext/gd/libgd': Directory not empty rm: can't remove '/usr/src/php/ext/soap/tests/soap12': Directory not empty rm: can't remove '/usr/src/php/ext/soap/tests/interop/Round3/GroupD': Directory not empty rm: can't remove '/usr/src/php/ext/mysqlnd': Directory not empty rm: can't remove '/usr/src/php/ext/ftp/tests': Directory not empty rm: can't remove '/usr/src/php/ext/phar/tests/tar/files': Directory not empty rm: can't remove '/usr/src/php/ext/hash/tests': Directory not empty rm: can't remove '/usr/src/php/ext/standard/tests/network': Directory not empty rm: can't remove '/usr/src/php/Zend/tests/return_types': Directory not empty $