UPDATE: I think these may be hard links after all, sorry. When I run stat, the inode is the same, and >1 links is reported. -- is there any other way to tell what's a hard link?
I would still like to know what is the mechanism behind this, and is there any way to turn it off? It blocks some useful sanity checks. On Tue, Dec 15, 2009 at 4:29 AM, Thomas Hartman <[email protected]> wrote: > This is really strange, and it may be the source of a patch-tag bug I > am trying to root out. > > It seems that, under certain conditions, file ownerships in repository > b pristine.hashed change after changing ownerships in repo a. > > Note: Patch-Tag private repo security is handled in the happstack > layer, so unaffected, but still. > > The file ownerships in repo b that change are hash files of some kind > of binary type, which are identical in both repos. However, they don't > appear to be soft or hard links. > > Also I disabled the darcs cache by doing mv ~/.darcs ~/.darcs.bak > > Can anybody explain what is going on? > > thanks! > > thart...@ubuntu:~/patch-tag-prod>cat spookyActionAtADistance.sh > #!/bin/bash > > # no output, no funny business > pgrep darcs > pgrep patch > prep gitit > > r1=/jail/privaterepos/tphyahoo21/mysweetrepo > r2=/jail/privaterepos/tphyahoo21/wihoo > > chown -R :dd3d75faf031ff6728f016035fa1bec2 $r1 > echo before > find $r1 -ls | grep -iv dd3d75faf031ff6728f016035fa1bec2 # no output > > chown :2db74c8ecbbd5e11412db8b02d884572 -R $r2 > > echo after > find $r1 -ls | grep -iv dd3d75faf031ff6728f016035fa1bec2 # output > > thart...@ubuntu:~/patch-tag-prod>sudo ./spookyActionAtADistance.sh > before > after > 19085 4 -rwxrwS--- 10 root 2db74c8ecbbd5e11412db8b02d884572 > 3671 Nov 6 17:42 > /jail/privaterepos/tphyahoo21/mysweetrepo/_darcs/pristine.hashed/0000009256-f3eb456a97104ac53e5d292a448efda483c05801df91ffd7cae4b74254caa144 > 543467 8 -rwxrwS--- 11 thartman 2db74c8ecbbd5e11412db8b02d884572 > 7486 Nov 6 17:42 > /jail/privaterepos/tphyahoo21/mysweetrepo/_darcs/pristine.hashed/0000019290-1db81dc9ecbf7c56fb407a502ea9e6057a4bcef1e76a46581505a8493c484445 > ... and a few more > > -- > Need somewhere to put your code? http://patch-tag.com > Want to build a webapp? http://happstack.com > -- Need somewhere to put your code? http://patch-tag.com Want to build a webapp? http://happstack.com _______________________________________________ darcs-users mailing list [email protected] http://lists.osuosl.org/mailman/listinfo/darcs-users
