Package: mtpfs
Version: 1.1-4
Severity: grave
Tags: patch
Justification: renders package unusable
Dear Maintainer,
* What led up to the situation?
mount my android phone with mtpfs-1.1, it will not show files in
folder that didn't have a subfolder.
* What exactly did you do (or not do) that was effective (or
ineffective)?
1. mount my phone to a folder: mtpfs -o rw /media/phone
2. open a terminal, cd to a folder with files but no subfolder,
and run ls, nothing will show.
* What was the outcome of this action?
I can't found some files under the mount point.
* What outcome did you expect instead?
Show all my files under the mount point.
Here's a patch for this bug. I've tested it, now it can show all my
files.
--- mtpfs-1.1/mtpfs.c 2013-02-07 17:21:31.526325953 +0800
+++ mtpfs-1.1-fix/mtpfs.c 2013-02-07 17:25:22.378680386 +0800
@@ -725,12 +725,12 @@ mtpfs_readdir (const gchar * path, void
if (folder_id==-2) {
DBG("Root of storage area");
folder=storageArea[storageid].folders;
+ if (folder == NULL) return_unlock(0);
} else {
folder = LIBMTP_Find_Folder (storageArea[storageid].folders,
folder_id);
if (folder == NULL) return_unlock(0);
folder = folder->child;
}
- if (folder == NULL) return_unlock(0);
while (folder != NULL) {
if ((folder->parent_id == folder_id) ||
One thing need to mention, I'm using the latest libmtp at sourceforge,
because the version in debian cannot mount my phone.
But I think it won't make any difference to this bug.
-- System Information:
Debian Release: 7.0
APT prefers testing
APT policy: (990, 'testing'), (500, 'testing-updates'), (500,
'testing-proposed-updates'), (500, 'stable-updates'), (500,
'proposed-updates'), (500, 'stable'), (400, 'unstable'), (1,
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages mtpfs depends on:
ii fuse 2.9.0-2+deb7u1
ii libc6 2.13-37
ii libfuse2 2.9.0-2+deb7u1
ii libglib2.0-0 2.33.12+really2.32.4-3
ii libid3tag0 0.15.1b-10
ii libmad0 0.15.1b-7
ii libmtp9 1.1.3-35-g0ece104-4
ii libusb-1.0-0 2:1.0.11-1
ii zlib1g 1:1.2.7.dfsg-13
mtpfs recommends no packages.
mtpfs suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]