Commit b4c787e6 b4c787e6ea89ba0005845925cc33070a264d2a77 by Sergey Poznyakoff

Fix in logstream

* libmailutils/stream/logstream.c (_log_write): Force MU_LOG_LOCUS
mode if the locus is given explicitly.
1 parent fd11c913
...@@ -168,12 +168,14 @@ _log_write (struct _mu_stream *str, const char *buf, size_t size, ...@@ -168,12 +168,14 @@ _log_write (struct _mu_stream *str, const char *buf, size_t size,
168 /* Input line (decimal) */ 168 /* Input line (decimal) */
169 READNUM (n); 169 READNUM (n);
170 _locus_set_line (&loc, n); 170 _locus_set_line (&loc, n);
171 logmode |= MU_LOGMODE_LOCUS;
171 break; 172 break;
172 173
173 case 'c': 174 case 'c':
174 /* Column in input line (decimal) */ 175 /* Column in input line (decimal) */
175 READNUM (n); 176 READNUM (n);
176 _locus_set_col (&loc, n); 177 _locus_set_col (&loc, n);
178 logmode |= MU_LOGMODE_LOCUS;
177 break; 179 break;
178 180
179 case 'f': 181 case 'f':
...@@ -182,6 +184,7 @@ _log_write (struct _mu_stream *str, const char *buf, size_t size, ...@@ -182,6 +184,7 @@ _log_write (struct _mu_stream *str, const char *buf, size_t size,
182 fname = buf; 184 fname = buf;
183 buf += flen; 185 buf += flen;
184 size -= flen; 186 size -= flen;
187 logmode |= MU_LOGMODE_LOCUS;
185 break; 188 break;
186 189
187 default: 190 default:
......