Blame SOURCES/sos-bz1597532-stat-isblk.patch

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