Bug? Mercurial permissions
Tuomo Valkonen
tuomo.valkonen@iki.fi
Wed May 30 17:37:00 GMT 2012
Hi,
Mercurial seems to be setting permissions strangely, on files inside
subdirectories, when cloning a repository. Namely, on the Windows side,
the user SYSTEM user seems to be lacking any permissions.
This causes the files not being able to be backed up (by CrashPlan).
~$ mkdir test
~$ cd test
~/test$ mkdir foo
~/test$ touch bar.txt foo/baz.txt
~/test$ hg init
~/test$ hg add bar.txt foo/baz.txt
~/test$ hg commit -m "test"
~/test$ cd ..
~$ hg clone test test2
updating to branch default
2 files updated, 0 files merged, 0 files removed, 0 files unresolved
~$ cd test2
~/test2$ ls -l bar.txt foo/baz.txt
-rw-------+ 1 tuomov None 0 2012-05-30 18:51 bar.txt
-rw------- 1 tuomov None 0 2012-05-30 18:51 foo/baz.txt
All looks good so far... but what's the difference with the + sign ?
Now let's look at Windows properties dialog for the permissions:
bar.txt:
SYSTEM: full control, etc.
tuomov: read, write
Administratoren: Full control
Everyone, None: Special permissions
("Administrators" is in German, because Lenovo recovery disks never gave
me the chance
to install English Windows, and I had to do some spurious stuff to make it
English.
The original install gave the chance.)
This looks ok so far, but let's look at the other file.
foo/baz.txt:
tuomov: read, write
Everyone, None: Special permissions
Oops, SYSTEM is missing.
What's going on here?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 28876 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20120530/e81855d7/attachment.obj>
-------------- next part --------------
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list