1 |
<!DOCTYPE html> |
2 |
<html lang='en'> |
3 |
<head> |
4 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
5 |
<title>Tree - rpms/clamav - Pagure</title> |
6 |
<link rel="shortcut icon" type="image/vnd.microsoft.icon" |
7 |
href="/static/favicon.ico"/> |
8 |
<link href="https://apps.fedoraproject.org/global/fedora-bootstrap-1.0.1/fedora-bootstrap.css" |
9 |
type="text/css" rel="stylesheet" /> |
10 |
<link href="/static/pagure.css" |
11 |
type="text/css" rel="stylesheet" /> |
12 |
<link href="/static/vendor/open-iconic/css/open-iconic.min.css" |
13 |
type="text/css" rel="stylesheet" /> |
14 |
<link href="/static/fonts/fonts.css" |
15 |
rel="stylesheet" type="text/css" /> |
16 |
<link href="/static/vendor/hack_fonts/css/hack-extended.min.css" |
17 |
type="text/css" rel="stylesheet" /> |
18 |
</head> |
19 |
<body id="home"> |
20 |
<!-- start masthead --> |
21 |
<div class="masthead"> |
22 |
<div class="container"> |
23 |
<div class="row"> |
24 |
<div class="col-sm-3"> |
25 |
<a href="/"> |
26 |
<img height=40px src="/static/pagure-logo.png" |
27 |
alt="pagure Logo" id="pagureLogo"/> |
28 |
</a> |
29 |
</div> |
30 |
<div class="col-sm-9"> |
31 |
<div class="row"> |
32 |
|
33 |
<nav class="navbar navbar-light p-t-0 p-b-0"> |
34 |
<div class="container"> |
35 |
<ul class="nav navbar-nav nav-underline pull-xs-right"> |
36 |
<li class="nav-item p-l-1"> |
37 |
<a class="nav-link btn btn-primary" href="/login/?next=https://src.fedoraproject.org/fork/robert/rpms/clamav/blob/el6/f/zlib-1.2.7-Fix-bug-where-gzopen-gzclose-would-write-an-empty-fi.patch">Log In</a> |
38 |
</li> |
39 |
</ul> |
40 |
</div> |
41 |
</nav> |
42 |
|
43 |
</div> |
44 |
</div> |
45 |
</div> |
46 |
</div> |
47 |
</div><!-- close masthead--> |
48 |
|
49 |
<div class="bodycontent p-b-3"> |
50 |
|
51 |
|
52 |
<div class="repo-header p-t-1"> |
53 |
<div class="container"> |
54 |
<header> |
55 |
<h2 class="repo-name m-b-0"> |
56 |
<a href="/user/robert"><span class="oi" data-glyph="fork"> |
57 |
</span>robert</a>/<a href="/projects/rpms/%2A">rpms</a>/<a href="/fork/robert/rpms/clamav">clamav</a> |
58 |
</h2> |
59 |
|
60 |
<div class="m-t-0"> |
61 |
Forked from |
62 |
<a href="/rpms/clamav"> |
63 |
rpms/clamav |
64 |
</a> |
65 |
</div> |
66 |
<div class="projectinfo m-t-1 m-b-1"> |
67 |
The clamav rpms </div> |
68 |
</header> |
69 |
|
70 |
<ul class="nav nav-tabs nav-small"> |
71 |
<li class="nav-item"> |
72 |
<a class="nav-link" href="/fork/robert/rpms/clamav"> |
73 |
<span class="oi hidden-md-up" data-glyph="home"></span> |
74 |
<span class="hidden-sm-down">Overview</span> |
75 |
</a> |
76 |
</li> |
77 |
|
78 |
<li class="nav-item"> |
79 |
<a class="nav-link" href="/fork/robert/rpms/clamav/commits/el6"> |
80 |
<span class="oi hidden-md-up" data-glyph="spreadsheet"> |
81 |
</span><span class="hidden-sm-down">Commits</span> |
82 |
</a> |
83 |
</li> |
84 |
|
85 |
<li class="nav-item"> |
86 |
<a class="active nav-link" href="/fork/robert/rpms/clamav/tree/el6"> |
87 |
<span class="oi hidden-md-up" data-glyph="file"></span> |
88 |
<span class="hidden-sm-down">Files</span> |
89 |
</a> |
90 |
</li> |
91 |
|
92 |
<li class="nav-item"> |
93 |
<a class="nav-link" href="/fork/robert/rpms/clamav/releases"> |
94 |
<span class="oi hidden-md-up" data-glyph="box"></span> |
95 |
<span class="hidden-sm-down">Releases</span> |
96 |
</a> |
97 |
</li> |
98 |
|
99 |
|
100 |
|
101 |
<li class="nav-item"> |
102 |
<a class="nav-link" href="/fork/robert/rpms/clamav/stats"> |
103 |
<span class="oi hidden-md-up" data-glyph="task"></span> |
104 |
<span class="hidden-sm-down">Stats </span> |
105 |
</a> |
106 |
</li> |
107 |
|
108 |
|
109 |
</ul> |
110 |
</div> |
111 |
</div> |
112 |
|
113 |
<div class="container p-t-3"> |
114 |
<div class="row m-b-1"> |
115 |
<div class="col-sm-6"> |
116 |
<h3> |
117 |
Files |
118 |
</h3> |
119 |
</div> |
120 |
|
121 |
<div class="col-sm-6"> |
122 |
<div class="pull-xs-right"> |
123 |
<div class="button-label button-label-default"> |
124 |
<span class="oi" data-glyph="fork"></span> |
125 |
robert/clamav |
126 |
|
127 |
</div> |
128 |
<div class="btn-group"> |
129 |
<button type="button" class="btn btn-secondary btn-sm dropdown-toggle" |
130 |
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> |
131 |
<span class="oi" data-glyph="random"> </span> el6 |
132 |
</button> |
133 |
<div class="dropdown-menu dropdown-menu-right"> |
134 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/el4/f/zlib-1.2.7-Fix-bug-where-gzopen-gzclose-would-write-an-empty-fi.patch"> |
135 |
el4 |
136 |
</a> |
137 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/el5/f/zlib-1.2.7-Fix-bug-where-gzopen-gzclose-would-write-an-empty-fi.patch"> |
138 |
el5 |
139 |
</a> |
140 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/el6/f/zlib-1.2.7-Fix-bug-where-gzopen-gzclose-would-write-an-empty-fi.patch"> |
141 |
el6 |
142 |
</a> |
143 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/epel7/f/zlib-1.2.7-Fix-bug-where-gzopen-gzclose-would-write-an-empty-fi.patch"> |
144 |
epel7 |
145 |
</a> |
146 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f10/f/zlib-1.2.7-Fix-bug-where-gzopen-gzclose-would-write-an-empty-fi.patch"> |
147 |
f10 |
148 |
</a> |
149 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f11/f/zlib-1.2.7-Fix-bug-where-gzopen-gzclose-would-write-an-empty-fi.patch"> |
150 |
f11 |
151 |
</a> |
152 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f12/f/zlib-1.2.7-Fix-bug-where-gzopen-gzclose-would-write-an-empty-fi.patch"> |
153 |
f12 |
154 |
</a> |
155 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f13/f/zlib-1.2.7-Fix-bug-where-gzopen-gzclose-would-write-an-empty-fi.patch"> |
156 |
f13 |
157 |
</a> |
158 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f14/f/zlib-1.2.7-Fix-bug-where-gzopen-gzclose-would-write-an-empty-fi.patch"> |
159 |
f14 |
160 |
</a> |
161 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f15/f/zlib-1.2.7-Fix-bug-where-gzopen-gzclose-would-write-an-empty-fi.patch"> |
162 |
f15 |
163 |
</a> |
164 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f16/f/zlib-1.2.7-Fix-bug-where-gzopen-gzclose-would-write-an-empty-fi.patch"> |
165 |
f16 |
166 |
</a> |
167 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f17/f/zlib-1.2.7-Fix-bug-where-gzopen-gzclose-would-write-an-empty-fi.patch"> |
168 |
f17 |
169 |
</a> |
170 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f18/f/zlib-1.2.7-Fix-bug-where-gzopen-gzclose-would-write-an-empty-fi.patch"> |
171 |
f18 |
172 |
</a> |
173 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f19/f/zlib-1.2.7-Fix-bug-where-gzopen-gzclose-would-write-an-empty-fi.patch"> |
174 |
f19 |
175 |
</a> |
176 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f20/f/zlib-1.2.7-Fix-bug-where-gzopen-gzclose-would-write-an-empty-fi.patch"> |
177 |
f20 |
178 |
</a> |
179 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f21/f/zlib-1.2.7-Fix-bug-where-gzopen-gzclose-would-write-an-empty-fi.patch"> |
180 |
f21 |
181 |
</a> |
182 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f22/f/zlib-1.2.7-Fix-bug-where-gzopen-gzclose-would-write-an-empty-fi.patch"> |
183 |
f22 |
184 |
</a> |
185 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f23/f/zlib-1.2.7-Fix-bug-where-gzopen-gzclose-would-write-an-empty-fi.patch"> |
186 |
f23 |
187 |
</a> |
188 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f24/f/zlib-1.2.7-Fix-bug-where-gzopen-gzclose-would-write-an-empty-fi.patch"> |
189 |
f24 |
190 |
</a> |
191 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f25/f/zlib-1.2.7-Fix-bug-where-gzopen-gzclose-would-write-an-empty-fi.patch"> |
192 |
f25 |
193 |
</a> |
194 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f26/f/zlib-1.2.7-Fix-bug-where-gzopen-gzclose-would-write-an-empty-fi.patch"> |
195 |
f26 |
196 |
</a> |
197 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f27/f/zlib-1.2.7-Fix-bug-where-gzopen-gzclose-would-write-an-empty-fi.patch"> |
198 |
f27 |
199 |
</a> |
200 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f28/f/zlib-1.2.7-Fix-bug-where-gzopen-gzclose-would-write-an-empty-fi.patch"> |
201 |
f28 |
202 |
</a> |
203 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f7/f/zlib-1.2.7-Fix-bug-where-gzopen-gzclose-would-write-an-empty-fi.patch"> |
204 |
f7 |
205 |
</a> |
206 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f8/f/zlib-1.2.7-Fix-bug-where-gzopen-gzclose-would-write-an-empty-fi.patch"> |
207 |
f8 |
208 |
</a> |
209 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f9/f/zlib-1.2.7-Fix-bug-where-gzopen-gzclose-would-write-an-empty-fi.patch"> |
210 |
f9 |
211 |
</a> |
212 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/fc6/f/zlib-1.2.7-Fix-bug-where-gzopen-gzclose-would-write-an-empty-fi.patch"> |
213 |
fc6 |
214 |
</a> |
215 |
<a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/master/f/zlib-1.2.7-Fix-bug-where-gzopen-gzclose-would-write-an-empty-fi.patch"> |
216 |
master |
217 |
</a> |
218 |
</div> |
219 |
</div> |
220 |
</div> |
221 |
</div> |
222 |
</div> |
223 |
<div class="card"> |
224 |
<div class="card-header"> |
225 |
<ol class="breadcrumb"> |
226 |
<li> |
227 |
<a href="/fork/robert/rpms/clamav/tree/el6"> |
228 |
<span class="oi" data-glyph="random"> |
229 |
</span> el6 |
230 |
</a> |
231 |
</li> |
232 |
<li class="active"> |
233 |
<span class="oi" data-glyph="file"> |
234 |
</span> zlib-1.2.7-Fix-bug-where-gzopen-gzclose-would-write-an-empty-fi.patch |
235 |
</li> |
236 |
</ol> |
237 |
</div> |
238 |
|
239 |
<div class="card-block p-a-0"> |
240 |
<div class="file-button-bar"> |
241 |
<form class="btn btn-sm" method="POST" name="fork_project" |
242 |
action="/fork_edit/fork/robert/rpms/clamav/edit/el6/f/zlib-1.2.7-Fix-bug-where-gzopen-gzclose-would-write-an-empty-fi.patch"> |
243 |
<button class="btn btn-sm btn-secondary" |
244 |
onclick="fork_project.submit();"> |
245 |
Fork and Edit |
246 |
</button> |
247 |
|
248 |
</form> |
249 |
|
250 |
<a class="btn btn-secondary btn-sm" href="/fork/robert/rpms/clamav/blob/el6/f/zlib-1.2.7-Fix-bug-where-gzopen-gzclose-would-write-an-empty-fi.patch" title="View as blob">Blob</a> |
251 |
|
252 |
<a class="btn btn-secondary btn-sm" href="/fork/robert/rpms/clamav/blame/zlib-1.2.7-Fix-bug-where-gzopen-gzclose-would-write-an-empty-fi.patch?identifier=el6" title="View git blame">Blame</a> |
253 |
|
254 |
<a class="btn btn-secondary btn-sm" href="/fork/robert/rpms/clamav/raw/el6/f/zlib-1.2.7-Fix-bug-where-gzopen-gzclose-would-write-an-empty-fi.patch" title="View as raw">Raw</a> |
255 |
</div> |
256 |
|
257 |
<div class="highlight"> |
258 |
<table class="code_table"> |
259 |
<tr><td class="cell1"><a id="_1" href="#_1" data-line-number="1"></a></td> |
260 |
<td class="cell2"><pre><span></span>From 0cf495a1ca941428c0b11e2307cad760ae44993e Mon Sep 17 00:00:00 2001</pre></td> |
261 |
</tr> |
262 |
<tr><td class="cell1"><a id="_2" href="#_2" data-line-number="2"></a></td> |
263 |
<td class="cell2"><pre>From: Mark Adler <madler@alumni.caltech.edu></pre></td> |
264 |
</tr> |
265 |
<tr><td class="cell1"><a id="_3" href="#_3" data-line-number="3"></a></td> |
266 |
<td class="cell2"><pre>Date: Sat, 29 Sep 2012 22:23:47 -0700</pre></td> |
267 |
</tr> |
268 |
<tr><td class="cell1"><a id="_4" href="#_4" data-line-number="4"></a></td> |
269 |
<td class="cell2"><pre>Subject: [PATCH] Fix bug where gzopen(), gzclose() would write an empty file.</pre></td> |
270 |
</tr> |
271 |
<tr><td class="cell1"><a id="_5" href="#_5" data-line-number="5"></a></td> |
272 |
|
273 |
<tr><td class="cell1"><a id="_6" href="#_6" data-line-number="6"></a></td> |
274 |
<td class="cell2"><pre>A gzopen() to write (mode "w") followed immediately by a gzclose()</pre></td> |
275 |
</tr> |
276 |
<tr><td class="cell1"><a id="_7" href="#_7" data-line-number="7"></a></td> |
277 |
<td class="cell2"><pre>would output an empty zero-length file. What it should do is write</pre></td> |
278 |
</tr> |
279 |
<tr><td class="cell1"><a id="_8" href="#_8" data-line-number="8"></a></td> |
280 |
<td class="cell2"><pre>an empty gzip file, with the gzip header, empty deflate content,</pre></td> |
281 |
</tr> |
282 |
<tr><td class="cell1"><a id="_9" href="#_9" data-line-number="9"></a></td> |
283 |
<td class="cell2"><pre>and gzip trailer totalling 20 bytes. This fixes it to do that.</pre></td> |
284 |
</tr> |
285 |
<tr><td class="cell1"><a id="_10" href="#_10" data-line-number="10"></a></td> |
286 |
<td class="cell2"><pre><span style="color: #a40000; background-color: #ffdddd">---</span></pre></td> |
287 |
</tr> |
288 |
<tr><td class="cell1"><a id="_11" href="#_11" data-line-number="11"></a></td> |
289 |
<td class="cell2"><pre> gzwrite.c | 15 +++++++--------</pre></td> |
290 |
</tr> |
291 |
<tr><td class="cell1"><a id="_12" href="#_12" data-line-number="12"></a></td> |
292 |
<td class="cell2"><pre> 1 file changed, 7 insertions(+), 8 deletions(-)</pre></td> |
293 |
</tr> |
294 |
<tr><td class="cell1"><a id="_13" href="#_13" data-line-number="13"></a></td> |
295 |
|
296 |
<tr><td class="cell1"><a id="_14" href="#_14" data-line-number="14"></a></td> |
297 |
<td class="cell2"><pre><span style="color: #000080; font-weight: bold">diff --git a/gzwrite.c b/gzwrite.c</span></pre></td> |
298 |
</tr> |
299 |
<tr><td class="cell1"><a id="_15" href="#_15" data-line-number="15"></a></td> |
300 |
<td class="cell2"><pre><span style="color: #000080; font-weight: bold">index f53aace..79a69a5 100644</span></pre></td> |
301 |
</tr> |
302 |
<tr><td class="cell1"><a id="_16" href="#_16" data-line-number="16"></a></td> |
303 |
<td class="cell2"><pre><span style="color: #a40000; background-color: #ffdddd">--- a/gzwrite.c</span></pre></td> |
304 |
</tr> |
305 |
<tr><td class="cell1"><a id="_17" href="#_17" data-line-number="17"></a></td> |
306 |
<td class="cell2"><pre><span style="color: #00A000; background-color: #ddffdd">+++ b/gzwrite.c</span></pre></td> |
307 |
</tr> |
308 |
<tr><td class="cell1"><a id="_18" href="#_18" data-line-number="18"></a></td> |
309 |
<td class="cell2"><pre><span style="color: #800080; font-weight: bold">@@ -554,15 +554,14 @@ int ZEXPORT gzclose_w(file)</span></pre></td> |
310 |
</tr> |
311 |
<tr><td class="cell1"><a id="_19" href="#_19" data-line-number="19"></a></td> |
312 |
<td class="cell2"><pre> }</pre></td> |
313 |
</tr> |
314 |
<tr><td class="cell1"><a id="_20" href="#_20" data-line-number="20"></a></td> |
315 |
<td class="cell2"><pre> </pre></td> |
316 |
</tr> |
317 |
<tr><td class="cell1"><a id="_21" href="#_21" data-line-number="21"></a></td> |
318 |
<td class="cell2"><pre> /* flush, free memory, and close file */</pre></td> |
319 |
</tr> |
320 |
<tr><td class="cell1"><a id="_22" href="#_22" data-line-number="22"></a></td> |
321 |
<td class="cell2"><pre><span style="color: #a40000; background-color: #ffdddd">- if (state->size) {</span></pre></td> |
322 |
</tr> |
323 |
<tr><td class="cell1"><a id="_23" href="#_23" data-line-number="23"></a></td> |
324 |
<td class="cell2"><pre><span style="color: #a40000; background-color: #ffdddd">- if (gz_comp(state, Z_FINISH) == -1)</span></pre></td> |
325 |
</tr> |
326 |
<tr><td class="cell1"><a id="_24" href="#_24" data-line-number="24"></a></td> |
327 |
<td class="cell2"><pre><span style="color: #a40000; background-color: #ffdddd">- ret = state->err;</span></pre></td> |
328 |
</tr> |
329 |
<tr><td class="cell1"><a id="_25" href="#_25" data-line-number="25"></a></td> |
330 |
<td class="cell2"><pre><span style="color: #a40000; background-color: #ffdddd">- if (!state->direct) {</span></pre></td> |
331 |
</tr> |
332 |
<tr><td class="cell1"><a id="_26" href="#_26" data-line-number="26"></a></td> |
333 |
<td class="cell2"><pre><span style="color: #a40000; background-color: #ffdddd">- (void)deflateEnd(&(state->strm));</span></pre></td> |
334 |
</tr> |
335 |
<tr><td class="cell1"><a id="_27" href="#_27" data-line-number="27"></a></td> |
336 |
<td class="cell2"><pre><span style="color: #a40000; background-color: #ffdddd">- free(state->out);</span></pre></td> |
337 |
</tr> |
338 |
<tr><td class="cell1"><a id="_28" href="#_28" data-line-number="28"></a></td> |
339 |
<td class="cell2"><pre><span style="color: #a40000; background-color: #ffdddd">- }</span></pre></td> |
340 |
</tr> |
341 |
<tr><td class="cell1"><a id="_29" href="#_29" data-line-number="29"></a></td> |
342 |
<td class="cell2"><pre><span style="color: #a40000; background-color: #ffdddd">- free(state->in);</span></pre></td> |
343 |
</tr> |
344 |
<tr><td class="cell1"><a id="_30" href="#_30" data-line-number="30"></a></td> |
345 |
<td class="cell2"><pre><span style="color: #00A000; background-color: #ddffdd">+ if (gz_comp(state, Z_FINISH) == -1)</span></pre></td> |
346 |
</tr> |
347 |
<tr><td class="cell1"><a id="_31" href="#_31" data-line-number="31"></a></td> |
348 |
<td class="cell2"><pre><span style="color: #00A000; background-color: #ddffdd">+ ret = state->err;</span></pre></td> |
349 |
</tr> |
350 |
<tr><td class="cell1"><a id="_32" href="#_32" data-line-number="32"></a></td> |
351 |
<td class="cell2"><pre><span style="color: #00A000; background-color: #ddffdd">+ if (!state->direct) {</span></pre></td> |
352 |
</tr> |
353 |
<tr><td class="cell1"><a id="_33" href="#_33" data-line-number="33"></a></td> |
354 |
<td class="cell2"><pre><span style="color: #00A000; background-color: #ddffdd">+ (void)deflateEnd(&(state->strm));</span></pre></td> |
355 |
</tr> |
356 |
<tr><td class="cell1"><a id="_34" href="#_34" data-line-number="34"></a></td> |
357 |
<td class="cell2"><pre><span style="color: #00A000; background-color: #ddffdd">+ free(state->out);</span></pre></td> |
358 |
</tr> |
359 |
<tr><td class="cell1"><a id="_35" href="#_35" data-line-number="35"></a></td> |
360 |
<td class="cell2"><pre> }</pre></td> |
361 |
</tr> |
362 |
<tr><td class="cell1"><a id="_36" href="#_36" data-line-number="36"></a></td> |
363 |
<td class="cell2"><pre><span style="color: #00A000; background-color: #ddffdd">+ if (state->size)</span></pre></td> |
364 |
</tr> |
365 |
<tr><td class="cell1"><a id="_37" href="#_37" data-line-number="37"></a></td> |
366 |
<td class="cell2"><pre><span style="color: #00A000; background-color: #ddffdd">+ free(state->in);</span></pre></td> |
367 |
</tr> |
368 |
<tr><td class="cell1"><a id="_38" href="#_38" data-line-number="38"></a></td> |
369 |
<td class="cell2"><pre> gz_error(state, Z_OK, NULL);</pre></td> |
370 |
</tr> |
371 |
<tr><td class="cell1"><a id="_39" href="#_39" data-line-number="39"></a></td> |
372 |
<td class="cell2"><pre> free(state->path);</pre></td> |
373 |
</tr> |
374 |
<tr><td class="cell1"><a id="_40" href="#_40" data-line-number="40"></a></td> |
375 |
<td class="cell2"><pre> if (close(state->fd) == -1)</pre></td> |
376 |
</tr> |
377 |
<tr><td class="cell1"><a id="_41" href="#_41" data-line-number="41"></a></td> |
378 |
<td class="cell2"><pre><span style="color: #a40000; background-color: #ffdddd">-- </span></pre></td> |
379 |
</tr> |
380 |
<tr><td class="cell1"><a id="_42" href="#_42" data-line-number="42"></a></td> |
381 |
<td class="cell2"><pre>1.9.3</pre></td> |
382 |
</tr> |
383 |
</table></div> |
384 |
</div> |
385 |
</div> <!-- end .card--> |
386 |
|
387 |
|
388 |
</div> |
389 |
</div> |
390 |
|
391 |
<div class="footer p-t-1 p-b-1"> |
392 |
<div class="container"> |
393 |
<p class="text-muted credit"> |
394 |
Copyright © 2014-2018 Red Hat |
395 |
<a href="https://pagure.io/pagure">pagure</a> — |
396 |
4.0.4 — <a href="https://docs.pagure.org/pagure/usage/index.html">Documentation</a> |
397 |
</p> |
398 |
<p><a href="/ssh_info">SSH Hostkey/Fingerprint</a></p> |
399 |
</div> |
400 |
</div> |
401 |
|
402 |
<script type="text/javascript" |
403 |
src="/static/vendor/jquery/jquery.min.js"> |
404 |
</script> |
405 |
<script type="text/javascript" |
406 |
src="/static/vendor/jquery-ui/jquery-ui.min.js"> |
407 |
</script> |
408 |
<script type="text/javascript" |
409 |
src="https://apps.fedoraproject.org/global/fedora-bootstrap-1.0.1/fedora-bootstrap.js"> |
410 |
</script> |
411 |
<script type="text/javascript"> |
412 |
$('[data-toggle="tooltip"]').tooltip({placement : 'bottom'}); |
413 |
</script> |
414 |
|
415 |
<script type="text/javascript" |
416 |
src="/static/vendor/lazyload/lazyload.min.js"> |
417 |
</script> |
418 |
<script type="text/javascript"> |
419 |
window.addEventListener("load", function(event) { |
420 |
lazyload(); |
421 |
}); |
422 |
|
423 |
$(document).ready(function() { |
424 |
var currentWatchStatusButton = $('#unwatch_button'); |
425 |
currentWatchStatusButton.prepend('<span class="oi" data-glyph="circle-check" style="padding-right:0.5em"></span>'); |
426 |
$('.watch-menu a').not(currentWatchStatusButton).css('padding-left', '2.85em'); |
427 |
|
428 |
$(".watch-menu a").click(function(){ |
429 |
var selectedValue = $(this).attr('id'); |
430 |
var watchProjectForm = $("#watch_project"); |
431 |
var action = watchProjectForm.attr('action'); |
432 |
|
433 |
if (selectedValue === "watch_issues_button") { |
434 |
action = action.replace('/settings/0', '/settings/1'); |
435 |
} else if (selectedValue === "watch_commits_button") { |
436 |
action = action.replace('/settings/0', '/settings/2'); |
437 |
} else if (selectedValue === "watch_issues_commits_button") { |
438 |
action = action.replace('/settings/0', '/settings/3'); |
439 |
} else if (selectedValue === "reset_button") { |
440 |
action = action.replace('/settings/0', '/settings/-1'); |
441 |
} |
442 |
|
443 |
watchProjectForm.attr('action', action); |
444 |
watchProjectForm.submit(); |
445 |
}); |
446 |
}); |
447 |
</script> |
448 |
|
449 |
<script type="text/javascript"> |
450 |
function updateHighlight() { |
451 |
var cls = "highlighted-line"; |
452 |
$('.' + cls).removeClass(cls) |
453 |
if (location.hash !== '') { |
454 |
var lines = location.hash.substr(2).split('-').map(function (x) { return parseInt(x, 10) }); |
455 |
for (var i = lines[lines.length - 1]; i >= lines[0]; i--) { |
456 |
$('[data-line-number=' + i + ']').closest('tr').addClass(cls); |
457 |
} |
458 |
return lines; |
459 |
} |
460 |
return []; |
461 |
} |
462 |
$(document).ready(function () { |
463 |
var lines = updateHighlight(); |
464 |
if (lines) { |
465 |
var offset = $('[data-line-number=' + lines[0] + ']').offset().top; |
466 |
$('html, body').animate({scrollTop: offset}, 200); |
467 |
} |
468 |
}); |
469 |
$(window).on('hashchange', updateHighlight); |
470 |
var selected = []; |
471 |
$("[data-line-number]").click(function (ev) { |
472 |
var line = $(this).attr('data-line-number'); |
473 |
if (ev.shiftKey) { |
474 |
selected = selected.slice(-1).concat(line); |
475 |
} else { |
476 |
selected = [line]; |
477 |
} |
478 |
|
479 |
var hash = '_' + selected[0]; |
480 |
if (selected.length === 2) { |
481 |
hash = '_' + Math.min(selected[0], selected[1]) + '-' + Math.max(selected[0], selected[1]); |
482 |
} |
483 |
window.location.hash = hash; |
484 |
return false; |
485 |
}); |
486 |
</script> |
487 |
|
488 |
|
489 |
</body> |
490 |
</html> |