uutils / uutils/coreutils

Regression: cp fails to copy files to Android device using MTP (os error 95)

Open
#8,724 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

U - cp
Dominant language
Rust
Stars
24.1k
Forks
2k
Avg merge
1d 5h
Merged PRs (30d)
365

Description

OS: Ubuntu 25.10 beta (all updates as of September 23rd)

Problem:
Copying files to an Android device via MTP fails with the Rust coreutils cp command. After connecting an Android device via USB (MTP mode) and running:

cp 'main.pdf' '/run/user/1000/gvfs/mtp:host=QUALCOMM_LAGOON-MTP__SN%3AEC8FEFA4_9c03b7ab/Internal shared storage/Documents/main.pdf'

I get the error:

cp: 'main.pdf' -> '/run/user/1000/gvfs/mtp:host=QUALCOMM_LAGOON-MTP__SN%3AEC8FEFA4_9c03b7ab/Internal shared storage/Documents/main.pdf': Operation not supported (os error 95)

With GNU coreutils, the copy operation succeeds.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with the Rust coreutils cp command on Ubuntu using an Android device connected through MTP and the /run/user/1000/gvfs path shown in the report. Compare the same copy operation with GNU coreutils to identify the differing behavior. Done means cp successfully copies main.pdf to the device's Documents directory without the os error 95.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, rust
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.