Blame SOURCES/sos-bz1597532-stat-isblk.patch
|
|
c33036 |
From 4127d02f00561b458398ce2b5ced7ae853b23227 Mon Sep 17 00:00:00 2001
|
|
|
c33036 |
From: Bryan Quigley <bryan.quigley@canonical.com>
|
|
|
c33036 |
Date: Mon, 2 Jul 2018 16:48:21 -0400
|
|
|
c33036 |
Subject: [PATCH] [archive] fix stat typo
|
|
|
c33036 |
|
|
|
c33036 |
They're just missing the S_ in front of them so if that code gets
|
|
|
c33036 |
reached it fails.
|
|
|
c33036 |
|
|
|
c33036 |
Fixes: #1373
|
|
|
c33036 |
Resolves: #1374
|
|
|
c33036 |
|
|
|
c33036 |
Signed-off-by: Bryan Quigley <bryan.quigley@canonical.com>
|
|
|
c33036 |
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
|
|
c33036 |
---
|
|
|
c33036 |
sos/archive.py | 8 ++++----
|
|
|
c33036 |
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
c33036 |
|
|
|
c33036 |
diff --git a/sos/archive.py b/sos/archive.py
|
|
|
c33036 |
index 263e3dd3f..fdf6f9a80 100644
|
|
|
c33036 |
--- a/sos/archive.py
|
|
|
c33036 |
+++ b/sos/archive.py
|
|
|
c33036 |
@@ -204,10 +204,10 @@ def _check_path(self, src, path_type, dest=None, force=False):
|
|
|
c33036 |
|
|
|
c33036 |
def is_special(mode):
|
|
|
c33036 |
return any([
|
|
|
c33036 |
- stat.ISBLK(mode),
|
|
|
c33036 |
- stat.ISCHR(mode),
|
|
|
c33036 |
- stat.ISFIFO(mode),
|
|
|
c33036 |
- stat.ISSOCK(mode)
|
|
|
c33036 |
+ stat.S_ISBLK(mode),
|
|
|
c33036 |
+ stat.S_ISCHR(mode),
|
|
|
c33036 |
+ stat.S_ISFIFO(mode),
|
|
|
c33036 |
+ stat.S_ISSOCK(mode)
|
|
|
c33036 |
])
|
|
|
c33036 |
|
|
|
c33036 |
if force:
|