Skip to content
Permalink
Browse files

Pad file modes to 4 digits

  • Loading branch information...
citrus-it authored and pyhalov committed Aug 9, 2019
1 parent 47200a5 commit 5c9349557db154caadd50d2ee60ba66dd8b9431e
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/modules/actions/generic.py
@@ -1037,8 +1037,8 @@ def ftype_to_name(ftype):
expected_id=group))

if mode is not None and stat.S_IMODE(lstat.st_mode) != mode:
errors.append(_("Mode: {found:o} should be "
"{expected:o}").format(
errors.append(_("Mode: {found:04o} should be "
"{expected:04o}").format(
found=stat.S_IMODE(lstat.st_mode),
expected=mode))
return lstat, errors, warnings, info, abort

0 comments on commit 5c93495

Please sign in to comment.
You can’t perform that action at this time.