Skip to content

Commit

Permalink
Pad file modes to 4 digits
Browse files Browse the repository at this point in the history
  • Loading branch information
citrus-it authored and pyhalov committed Aug 10, 2019
1 parent 47200a5 commit 5c93495
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/actions/generic.py
Expand Up @@ -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
Expand Down

0 comments on commit 5c93495

Please sign in to comment.