Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 8a4c9a168d09 by Charles-François Natali in branch '2.7':
Issue #5113: Fix a test_posix failure on HP-UX, where non-root users can
http://hg.python.org/cpython/rev/8a4c9a168d09
New changeset 428bece48029 by
Charles-François Natali neolo...@free.fr added the comment:
Committed, thanks.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
versions: -Python 2.6
___
Python tracker rep...@bugs.python.org
Charles-François Natali neolo...@free.fr added the comment:
Adi, since you have access to an HP-UX box, could you test the attached patch
(chown_hpux.diff)?
Also, if you're interested, you could search for other isues HP-UX-specific to
see if you can help.
--
Adi Roiban a...@roiban.ro added the comment:
Hi,
Not sure what codebase was used for the patch.
I have manually patched the test on 2.5.6 and the test_posix tests passed.
Thanks!
Adi
--
___
Python tracker rep...@bugs.python.org
Adi Roiban a...@roiban.ro added the comment:
I am not sure how the search works, but for example I was not able to reach
http://bugs.python.org/issue5895 while searching for hpux or hp-ux using the
internal search.
Also I was not able to find any aix or solaris bug.
In case you bump over an
R. David Murray rdmur...@bitdance.com added the comment:
Search is currently not returning all matching issues, unfortunately. You
might get a few more hits by searching for hpux in the title field via advanced
search.
--
nosy: +r.david.murray
___
Changes by Adi Roiban a...@roiban.ro:
--
nosy: +adiroiban
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5113
___
___
Python-bugs-list mailing list
Charles-François Natali neolo...@free.fr added the comment:
Oooh, I'm confused. I removed this stupid patch.
chown_hpux-3.diff has a problem too: it skips the successful chown call (that's
why I put the SkipTest at the end).
--
___
Python tracker
Changes by Charles-François Natali neolo...@free.fr:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5113
___
___
Python-bugs-list
STINNER Victor victor.stin...@haypocalc.com added the comment:
It's surprising to raise a SkipTest *at the end* of the test. Here is another
patch.
--
Added file: http://bugs.python.org/file23037/chown_hpux-2.diff
___
Python tracker
Changes by STINNER Victor victor.stin...@haypocalc.com:
Added file: http://bugs.python.org/file23038/chown_hpux-3.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5113
___
Changes by STINNER Victor victor.stin...@haypocalc.com:
Removed file: http://bugs.python.org/file23037/chown_hpux-2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5113
___
Changes by STINNER Victor victor.stin...@haypocalc.com:
Added file: http://bugs.python.org/file23039/chown_hpux-4.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5113
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
Using chown_hpux-4.diff, we don't skip anything on HP-UX.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5113
___
Charles-François Natali neolo...@free.fr added the comment:
Using chown_hpux-4.diff, we don't skip anything on HP-UX.
Victor, I don't understand your patch: if we try chown()ing a file to root,
then this will fail on HP-UX (because chown won't fail with EPERM). That's the
whole point of the
Changes by STINNER Victor victor.stin...@haypocalc.com:
Removed file: http://bugs.python.org/file23039/chown_hpux-4.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5113
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
if we try chown()ing a file to root, then this will fail on HP-UX
Oooh, I'm confused. I removed this stupid patch.
--
___
Python tracker rep...@bugs.python.org
STINNER Victor victor.stin...@haypocalc.com added the comment:
# HP-UX and Solaris allow a non-root user to chown to root
I didn't see failure on our Solaris / OpenIndiana buildbot. Should we really
skip the test on Solaris?
--
___
Python tracker
Charles-François Natali neolo...@free.fr added the comment:
Well, IIRC, I read in the Solaris man pages that it behaves like HP-UX
in this regard. But this it can be changed with `setprivgrp`, so it
might work on some machines, and fail on others.
According to
Charles-François Natali neolo...@free.fr added the comment:
Patch attached.
--
keywords: +needs review, patch
stage: - patch review
versions: +Python 3.2, Python 3.3
Added file: http://bugs.python.org/file22780/chown_hpux.diff
___
Python tracker
Charles-Francois Natali neolo...@free.fr added the comment:
Actually, looking at the man page, this seems to be normal:
---
In order to change the owner or group, you must own the file and have the CHOWN
privilege (see setprivgrp(1M)). [...] Note that a given user's or group's
ability to use
Andreas Kupries andre...@activestate.com added the comment:
Yes.
Session log:
andre...@bertha:~/tmp/x ll
total 0
andre...@bertha:~/tmp/x touch foobar
andre...@bertha:~/tmp/x ll
total 0
-rw-rw-r-- 1 andreask DomainUsers 0 Feb 2 10:17 foobar
andre...@bertha:~/tmp/x chown root foobar
Antoine Pitrou pit...@free.fr added the comment:
That explains what the test fails then. The test expects that you can't
chown a file to root as a normal user, and it verifies that an exception
is raised in that case.
Do you know if this behaviour is standard under HP-UX? If so, what do
Andreas Kupries andre...@activestate.com added the comment:
I do not know if this is standard for hpux or not.
I can say that right now we have six different HPUX machines which
behave in this manner, i.e. do not throw an error for the 'chown root
foobar' command for an ordinary (non-root)
Antoine Pitrou pit...@free.fr added the comment:
Ok, and when you try to chown back to yourself the root-owned foobar,
does it fail?
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5113
___
Andreas Kupries andre...@activestate.com added the comment:
Yes, that does fail with error 'not owner'.
andre...@bertha:~/tmp mkdir x
andre...@bertha:~/tmp cd x
andre...@bertha:~/tmp/x touch foobar
andre...@bertha:~/tmp/x ll
total 0
-rw-rw-r-- 1 andreask DomainUsers 0 Feb 2 15:06
Antoine Pitrou pit...@free.fr added the comment:
If you try chown root foobar, with foobar being a valid file you
own, does it succeed?
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5113
New submission from Andreas Kupries andre...@activestate.com:
The 'test_posix' of Python's 2.5.4.3 testsuite fails on HPUX. This has
happened on parisc and ia64 systems. On the parisc system failure occurs
for both parisc1.1 and parisc2.0w builds. The HPUX versions are 11.00
(parisc) and 11.22
28 matches
Mail list logo