summaryrefslogtreecommitdiff
path: root/shellutils.py
diff options
context:
space:
mode:
authorAlexandre Fayolle <alexandre.fayolle@logilab.fr>2008-01-29 15:04:48 +0100
committerAlexandre Fayolle <alexandre.fayolle@logilab.fr>2008-01-29 15:04:48 +0100
commit21a8afc7f8ae353b4d5102189d6131276ca598ac (patch)
treeb4b6ce65f97d6259e21633fbef8a02bcea6cd4b7 /shellutils.py
parenta4c7486e5935b56427dcaa426f484e9d0d69e8f6 (diff)
downloadlogilab-common-21a8afc7f8ae353b4d5102189d6131276ca598ac.tar.gz
added caution about exception raised by chown
Diffstat (limited to 'shellutils.py')
-rw-r--r--shellutils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/shellutils.py b/shellutils.py
index 892f54d..99c305f 100644
--- a/shellutils.py
+++ b/shellutils.py
@@ -35,6 +35,8 @@ from logilab.common import STD_BLACKLIST
def chown(path, login=None, group=None):
"""same as `os.chown` function but accepting user login or group name as
argument. If login or group is omitted, it's left unchanged.
+
+ Note: you must own the file to chown it (or be root). Otherwise OSError is raised.
"""
if login is None:
uid = -1