From e2fd32689268c73623f82e6f42fc6e1dd4c1be59 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 27 May 2022 07:37:12 -0700 Subject: gzio: bugfix: just return descr for :name property. * gzio.c (gzio_get_prop): Don't play games with a computed :name; this property is relied upon for getting the path associated with an open file. --- gzio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gzio.c b/gzio.c index 4879ce0a..06f3a6ec 100644 --- a/gzio.c +++ b/gzio.c @@ -386,7 +386,7 @@ static val gzio_get_prop(val stream, val ind) if (ind == name_k) { struct strm_ops *ops = coerce(struct strm_ops *, stream->co.ops); val name = static_str(ops->name); - return format(nil, lit("~a ~a"), name, h->descr, nao); + return h->descr; } else if (ind == byte_oriented_k) { return h->is_byte_oriented ? t : nil; } -- cgit v1.2.3