diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-05-27 07:37:12 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-05-27 07:37:12 -0700 |
commit | e2fd32689268c73623f82e6f42fc6e1dd4c1be59 (patch) | |
tree | 2248b7d9ed5a6ca6fccb98767ca240ef76bae57b | |
parent | 0e50c1e2dadb948fee4baa755f59d97fe80d3980 (diff) | |
download | txr-e2fd32689268c73623f82e6f42fc6e1dd4c1be59.tar.gz txr-e2fd32689268c73623f82e6f42fc6e1dd4c1be59.tar.bz2 txr-e2fd32689268c73623f82e6f42fc6e1dd4c1be59.zip |
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.
-rw-r--r-- | gzio.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |