summarylogtreecommitdiffstats
path: root/subprocess-check_output.patch
diff options
context:
space:
mode:
Diffstat (limited to 'subprocess-check_output.patch')
-rw-r--r--subprocess-check_output.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/subprocess-check_output.patch b/subprocess-check_output.patch
new file mode 100644
index 000000000000..11f04ab93f06
--- /dev/null
+++ b/subprocess-check_output.patch
@@ -0,0 +1,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