Menu

#60 chmod being ignored

1.0
closed
nobody
None
2017-02-05
2014-07-26
No
$ uname -a
MSYS_NT-6.1 Steven-PC 2.0.0(0.273/5/3) 2014-06-24 09:17 x86_64 Msys

$ touch foo.sh

$ chmod +x foo.sh

$ ls -l
total 0
-rw-r--r-- 1 Steven None 0 Jul 26 06:59 foo.sh

Discussion

  • Zsolt M

    Zsolt M - 2014-11-20

    I'm having the same issue. As a nasty side effect after I cloned a GIT repo, and issued status, git believes there are local changes:

    $ git clone git@github.com:rust-lang/rust.git
    [...]
    
    $ git status
    On branch master
    Your branch is up-to-date with 'origin/master'.
    Changes not staged for commit:
      (use "git add <file>..." to update what will be committed)
      (use "git checkout -- <file>..." to discard changes in working directory)
    
            modified:   src/etc/adb_run_wrapper.sh
            modified:   src/etc/install.sh
            modified:   src/etc/mirror-all-snapshots.py
            modified:   src/etc/rustup.sh
            modified:   src/test/auxiliary/lint_output_format.rs
            modified:   src/test/pretty/issue-4264.pp
            modified:   src/test/run-make/mismatching-target-triples/bar.rs
            modified:   src/test/run-make/mismatching-target-triples/foo.rs
            modified:   src/test/run-make/pretty-expanded-hygiene/input.pp.rs
            modified:   src/test/run-make/pretty-expanded-hygiene/input.rs
            modified:   src/test/run-pass/attr-shebang.rs
            modified:   src/test/run-pass/shebang.rs
    
    $ git diff src/etc/adb_run_wrapper.sh
    diff --git a/src/etc/adb_run_wrapper.sh b/src/etc/adb_run_wrapper.sh
    old mode 100755
    new mode 100644
    
    $ uname -a
    MINGW32_NT-6.3 Z4ZEN 2.0.0(0.280/5/3) 2014-11-06 20:34 x86_64 Msys
    
     
  • Zsolt M

    Zsolt M - 2014-11-20

    Please ignore my previous comment, my fstab got messed up, works like a charm now.

     
  • Dani Moncayo

    Dani Moncayo - 2014-11-26

    I've just also had this problem. 'chmod' doesn't work and that seems to affect to git status/diff.

    I did nothing with my /etc/fstab, so I don't know whats going on here.

     
  • Steven Penny

    Steven Penny - 2014-11-26

    Hm, I figured changing /etc/fstab to

    none / cygdrive acl
    

    would fix it, but it does not

     
  • David Macek

    David Macek - 2015-04-19

    MSYS2 sets noacl on its default mount points, that's why chmod has no effect.

    As for the git problem, I can't reproduce it. Does git still have this issue on MSYS2? If so, what git distribution is that?

     
  • Anonymous

    Anonymous - 2015-05-11

    Having a similar issue with a build of finch. While the executable is executable the plugins are not.

     
  • David Macek

    David Macek - 2017-02-05
    • status: open --> closed
     
  • David Macek

    David Macek - 2017-02-05

    I don't think enabling ACL changes from MSYS2 would produce any good, the system is supposed to integrate well with the rest of Windows, while chmod'ing doesn't. Further discussion is possible.