[pkg-go] Bug#952796: go-mtpfs: rmdir issues rm -fr

Matteo Cypriani mcy at lm7.fr
Sat Feb 29 13:04:31 GMT 2020


Package: go-mtpfs
Version: 0.0~git20180209.d6f8f3c-1+b1
Severity: important

Dear Maintainer,

Issuing "rmdir" on a directories of the mounted filesystem is the
equivalent of recursively removing the directory (i.e. "rm -rf"), which
is obviously not the expected behaviour. This just led me to lose a lot
of data on the internal partition of my phone.

Steps to reproduce:

go-mtpfs ~/myphone
cd ~/myphone
mkdir -p foo/bar
rmdir foo

Outcome: foo is removed.

Expected outcome: rmdir complaining that foo is not empty and not
removing it.

Cheers,
  Matteo

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.4.0-4-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages go-mtpfs depends on:
ii  libc6         2.29-10
ii  libusb-1.0-0  2:1.0.23-2

go-mtpfs recommends no packages.

go-mtpfs suggests no packages.

-- no debconf information



More information about the Pkg-go-maintainers mailing list