On Sun, May 1, 2016 at 7:14 AM, Nguyễn Thái Ngọc Duy <[email protected]> wrote:
> Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]>
> ---
> diff --git a/grep.c b/grep.c
> @@ -1732,7 +1732,7 @@ static int grep_source_load_file(struct grep_source *gs)
> if (lstat(filename, &st) < 0) {
> err_ret:
> if (errno != ENOENT)
> - error(_("'%s': %s"), filename, strerror(errno));
> + error_errno(_("'%s'"), filename);
Does this still need to be wrapped in _(...)? (Did it ever?)
> return -1;
> }
> if (!S_ISREG(st.st_mode))
> @@ -1743,7 +1743,7 @@ static int grep_source_load_file(struct grep_source *gs)
> goto err_ret;
> data = xmallocz(size);
> if (st.st_size != read_in_full(i, data, size)) {
> - error(_("'%s': short read %s"), filename, strerror(errno));
> + error_errno(_("'%s': short read"), filename);
> close(i);
> free(data);
> return -1;
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html