Project

General

Profile

Bug #513 ยป heredocfix.diff.txt

Prototype patch - Roland Mainz, 2010-12-13 03:08 PM

 
1
--- usr/src/lib/libshell/common/sh/io.c   2010-12-02 16:39:41.000000000 +0100
2
+++ usr/src/lib/libshell/common/sh/io.c       2010-12-14 00:17:12.000000000 +0100
3
@@ -1533,9 +1533,9 @@
4
                        if(infile)
5
                                sfclose(infile);
6
                }
7
+               sfseek(shp->heredocs,off,SEEK_SET);
8
        }
9
        /* close stream outfile, but save file descriptor */
10
-       sfseek(shp->heredocs,off,SEEK_SET);
11
        fd =3D sffileno(outfile);
12
        sfsetfd(outfile,-1);
13
        sfclose(outfile);
    (1-1/1)