diff -r 7c12958eba26 -r 8c24b6fd5866 mercurial/util.py --- a/mercurial/util.py Sun Dec 10 16:24:21 2006 +0100 +++ b/mercurial/util.py Sun Dec 10 19:41:57 2006 +0100 @@ -902,7 +902,7 @@ The return value of a util.fstat(f) may be passed as the st argument. """ if st is None: - st = fstat(f) + st = fstat(fp) return st.st_uid == os.getuid() def _buildencodefun():