This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] localedef: improve error message [BZ #16985]


I'm not following exactly what the case is.  It looks to me like the only
cases where construct_output_path can return NULL is when asprintf fails or
when mkdir fails.  The asprintf case really should just be an immediate
failure as xmalloc would do.  When mkdir fails, I'm not entirely clear on
why we don't just die immediately.  I guess the idea is that we can
diagnose input errors even if we will never succeed in writing the output.
I wonder how worthwhile that really is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]