-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop crash when certain files are encountered
When special files such as named pipes and files which the user didn't have read permission for were encountered, crashes would occur because exceptions raised by the subprocesses executing 'chattr' and 'lsattr' were not being handled well. The commit stops those crashes.
- Loading branch information
1 parent
c31df97
commit f2a3cfe
Showing
15 changed files
with
643 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
class ProcessingError(Exception): | ||
"""Raise when a subprocess call exits with a non-zero status.""" | ||
class GetAttributeError(Exception): | ||
"""Raise when the immutable attribute cannot be accessed.""" | ||
|
||
|
||
class SetAttributeError(Exception): | ||
"""Raise when the immutable attribute cannot be set.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,6 @@ disable = missing-module-docstring | |
|
||
[pylint.REPORTS] | ||
score = no | ||
|
||
[pylint.SIMILARITIES] | ||
min-similarity-lines = 5 |
Oops, something went wrong.