summarylogtreecommitdiffstats
path: root/subprocess-check_output.patch
blob: 11f04ab93f06ef1d2987c78994f1c03afcec9c63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -urN a/src/compress b/src/compress
--- a/src/compress	2019-02-21 06:44:17.000000000 -0500
+++ b/src/compress	2023-02-10 10:38:24.963134333 -0500
@@ -52,7 +52,7 @@
     result = subprocess.check_output(["lsattr", path]).strip()
     if (result == ''):
         raise Exception('lsattr returned nothing')
-    result = result[:result.index(" ")]
+    result = result[:result.index(b' ')]
     for f in result:
         if (f == 'c'):
             return True