[Bug 5418] New: Operation not permitted for utime

bugzilla at mercurial-scm.org bugzilla at mercurial-scm.org
Mon Nov 7 15:09:51 UTC 2016


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: bugzilla at selenic.com
          Reporter: mads at kiilerich.com
                CC: mercurial-devel at 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.


More information about the Mercurial-devel mailing list