Skip to content

Commit 4ccf4c4

Browse files
committed
patch update
1 parent a5c6759 commit 4ccf4c4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

patches/repo_coreutils.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/src/cat.c b/src/cat.c
2-
index c02210301..cbdfae75f 100644
2+
index c02210301..2d34b2321 100644
33
--- a/src/cat.c
44
+++ b/src/cat.c
55
@@ -717,6 +717,7 @@ main (int argc, char **argv)
@@ -15,7 +15,7 @@ index c02210301..cbdfae75f 100644
1515
? SEEK_END : SEEK_CUR);
1616
if (in_pos < lseek (STDOUT_FILENO, 0, whence))
1717
+#else
18-
+ if (out_isreg && (lseek (input_desc, 0, SEEK_CUR) < stat_buf.st_size)
18+
+ if (out_isreg && (lseek (input_desc, 0, SEEK_CUR) < stat_buf.st_size)) { // extra to account for bracket above in non _WIN32
1919
+#endif
2020
{
2121
error (0, 0, _("%s: input file is output file"),

0 commit comments

Comments
 (0)