opnsense-ports/sysutils/e2fsprogs/files/patch-tests_r__inline__xattr_script
Franco Fichtner 82b9878abd sysutils/e2fsprogs: sync with upstream
Taken from: HardenedBSD
2018-07-10 16:31:12 +02:00

20 lines
1,005 B
Text

--- tests/r_inline_xattr/script.orig 2018-07-10 05:14:26 UTC
+++ tests/r_inline_xattr/script
@@ -14,7 +14,7 @@ echo "resize2fs test" > $OUT.new
# Look at existing inline extended attribute
echo "debugfs -R ''stat file'' test.img 2>&1 | grep ''^Inode\|in inode body\|user.name (''" >> $OUT.new
-$DEBUGFS -R "stat file" $TMPFILE 2>&1 | grep "^Inode\|in inode body\|user.name (" >> $OUT.new
+$DEBUGFS -R "stat file" $TMPFILE 2>&1 | grep -E "^Inode|in inode body|user.name \(" >> $OUT.new
status=$?
echo Exit status is $status >> $OUT.new
@@ -26,7 +26,7 @@ echo Exit status is $status >> $OUT.new
# Look at inline extended attribute in resized fs
echo "debugfs -R ''stat file'' test.img 2>&1 | grep ''^Inode\|in inode body\|user.name (''" >> $OUT.new
-$DEBUGFS -R "stat file" $TMPFILE 2>&1 | grep "^Inode\|in inode body\|user.name (" >> $OUT.new
+$DEBUGFS -R "stat file" $TMPFILE 2>&1 | grep -E "^Inode|in inode body|user.name \(" >> $OUT.new
status=$?
echo Exit status is $status >> $OUT.new