8000 mkdir: sets different default mode bits than GNU mkdir · Issue #3120 · uutils/coreutils · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

mkdir: sets different default mode bits than GNU mkdir #3120

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jfinkels opened this issue Feb 12, 2022 · 2 comments
Closed

mkdir: sets different default mode bits than GNU mkdir #3120

jfinkels opened this issue Feb 12, 2022 · 2 comments

Comments

@jfinkels
Copy link
Collaborator

With no other command-line options and no other umask set, the default mode bits for GNU mkdir on my system (Linux) seem to be drwxrwxr-x. But uutils mkdir seems to produce drwxr-xr-x.

GNU mkdir:

$ mkdir a
$ ls -ld a
drwxrwxr-x 2 jeffrey jeffrey 4096 Feb 11 22:15 a

uutils mkdir:

$ ./target/debug/mkdir a
$ ls -ld a
drwxr-xr-x 2 jeffrey jeffrey 4096 Feb 11 22:15 a
@tertsdiepraam
Copy link
Member
tertsdiepraam commented Feb 12, 2022

other umask set

Isn't there always a umask? Could this be a duplicate of the other issue with umask, but this is just the default case? On my system (umask 0022), the behaviour of uutils and GNU match (both drwxr-xr-x)

For others, I'm talking about this issue: #3119

@jfinkels
Copy link
Collaborator Author

Yes, I think you're right; I was confused when I opened this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0