https://bz.mercurial-scm.org/show_bug.cgi?id=5418

            Bug ID: 5418
           Summary: Operation not permitted for utime
           Product: Mercurial
           Version: 3.9
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: Mercurial
          Assignee: bugzi...@selenic.com
          Reporter: m...@kiilerich.com
                CC: mercurial-de...@selenic.com

When using a repo owned by another user but where I have group suid and proper
umask, I get 'Operation not permitted' from os.utime.

From linux utime man page:

       Changing  timestamps  is permitted when: either the process has
appropriate privileges, or the effective user ID equals the user ID of the
file, or times is NULL and the process has write permission
       for the file.

       If times is NULL, then the access and modification times of the file are
set to the current time.

The utime usage in 731ced087a4b does thus apparently not work with use cases
that Mercurial "always" has supported.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to