uutils / uutils/coreutils

minorbug(mv): when -m is \x01 it do not quote it like gnu

Open
#13,834 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hi, uutils mainteners

we confirmed uutils that not escape \x01 when using -m =, here is how to reproduce

relunsec@relunsec:~/software/coreutils/target/debug$ ./mkdir -m a=$'\x01' h/.
mkdir: invalid operator (expected +, -, or =, but found )
relunsec@relunsec:~/software/coreutils/target/debug$ gnumkdir -m a=$'\x01' h/.
gnumkdir: invalid mode ‘a=\001’
relunsec@relunsec:~/software/coreutils/target/debug$ 

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

Start at the mkdir command entry point and the handling of its -m mode argument. Reproduce the supplied command with a mode containing \x01, then compare its diagnostic with GNU mkdir's escaped representation. Done means the invalid mode error quotes the control character visibly rather than emitting it unescaped.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.