Web · Wiki · Activities · Blog · Lists · Chat · Meeting · Bugs · Git · Translate · Archive · People · Donate

Commit f595ac6c93cfb422da80dbbb96fc702f6893b46e

setxattr(): fix error code for EAs without "user." prefix

Linux has no ENOTSUP, only EOPNOTSUPP. And unlike errno.h, the Python errno
module does not define an alias.
  
327327
328328 def setxattr(self, path, name, value, flags):
329329 if not name.startswith('user.'):
330 raise IOError(errno.ENOTSUP, os.strerror(errno.ENOTSUP))
330 raise IOError(errno.EOPNOTSUPP, os.strerror(errno.EOPNOTSUPP))
331331
332332 attr_name_unicode = unicode(name[5:], 'utf-8')
333333 value_unicode = unicode(value, 'utf-8')