#1149508 curl sets terminal to nonblocking mode

Package:
curl
Source:
curl
Description:
command line tool for transferring data with URL syntax
Submitter:
Russell Coker
Date:
2026-10-08 02:49:02 UTC
Severity:
normal
Tags:
#1149508#5
Date:
2026-09-30 05:06:49 UTC
From:
To:
This bug appeared after an upgrade from veersion 8.22.0-1.

#!/bin/bash
set -e
curl -s "http://tinyurl.com/api-create.php?url=$1"
echo ""

I have the above shell script to get a tinyurl which has been working for many
years.

URL2=$(tinyurl $1)
read PRIM

The above shell script fails with the following error on the latest version:

script-name: line 26: read: 0: read error: Resource temporarily unavailable

When I changed the tinyurl script to the following (redirectint input from
/dev/null) it started working again.  It seems that curl messes with the
terminal settings and makes the bash script fail.

#!/bin/bash
set -e
curl -s "http://tinyurl.com/api-create.php?url=$1" < /dev/null
echo ""

The expected behaviour is that it will either not change the settings or it
will change them back after doing whatever it wants to do.

#1149508#8
Date:
2026-10-06 18:17:49 UTC
From:
To:
This is an upstream bug. There's an upstream report at
https://github.com/curl/curl/issues/23127 . It was introduced by
https://github.com/curl/curl/pull/23081 , and fixed in
https://github.com/curl/curl/pull/23144 by reverting the change.

Please consider updating to a version containing that upstream change
(or backporting the patch).

#1149508#13
Date:
2026-10-07 00:43:45 UTC
From:
To:
Hi Russel and Josh,
[...]

Ack.

Thanks for the pointers, Josh!

Tomorrow 8.23.0~rc3 will be released accordingly to my calendar so we
will upload to unstable by the weekend and soon after it will hit
testing fixing things.

Cheers,
Charles

#1149508#22
Date:
2026-10-08 02:46:18 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
curl, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1149508@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Carlos Henrique Lima Melara <charlesmelara@riseup.net> (supplier of updated curl package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Wed, 07 Oct 2026 21:43:25 -0300
Source: curl
Architecture: source
Version: 8.23.0~rc3-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Curl Maintainers <team+curl@tracker.debian.org>
Changed-By: Carlos Henrique Lima Melara <charlesmelara@riseup.net>
Closes: 1149508
Changes:
 curl (8.23.0~rc3-1) unstable; urgency=medium
 .
   * New upstream version 8.23.0~rc3. (Closes: #1149508)
   * debian/patches: rebase patches.
Checksums-Sha1:
 33f2c872f7b2f62d02bc3f38b6413870f43173a2 3601 curl_8.23.0~rc3-1.dsc
 a83ba89d2a4b5c48c3a8727b809ce8ac6a744d06 2980088 curl_8.23.0~rc3.orig.tar.xz
 35c58483de83aeb15f9b44f2239c0c00e5bbae4f 488 curl_8.23.0~rc3.orig.tar.xz.asc
 3e638725b72f9f760215ac3b490f255af02de29c 65440 curl_8.23.0~rc3-1.debian.tar.xz
 6b7d68f5105111f0dc2bcf8abd59b78b2e5dfe91 7126 curl_8.23.0~rc3-1_source.buildinfo
Checksums-Sha256:
 1cc025df32c0f5f132540aaba0fa267d9e83956c3b5df5b53ea0f9a26fc71097 3601 curl_8.23.0~rc3-1.dsc
 93a96df671a8b738929a417292935565148bbc8a5967b0028e05fe2519f5fc6d 2980088 curl_8.23.0~rc3.orig.tar.xz
 110b544f608f2dd5f4fb7fb9cf55490ff09780d577eedc05bcf67500e7013215 488 curl_8.23.0~rc3.orig.tar.xz.asc
 93d44540de9b44b93d3c31f3429c528d974999d96aa2200cec2d2ac686c0a2c9 65440 curl_8.23.0~rc3-1.debian.tar.xz
 14e3407f0a081e4b28bf80b08abc6462a5c8e9ef94665f9d8e4f2337cd3ffd1e 7126 curl_8.23.0~rc3-1_source.buildinfo
Files:
 e524e1392733be009a2f5a88722c5edc 3601 web optional curl_8.23.0~rc3-1.dsc
 0bc5eb01636de20a00738719dbcba07c 2980088 web optional curl_8.23.0~rc3.orig.tar.xz
 3ab6d34e02ce51f516838164cdb8adde 488 web optional curl_8.23.0~rc3.orig.tar.xz.asc
 07600c40703d8478ab28913ec6470465 65440 web optional curl_8.23.0~rc3-1.debian.tar.xz
 445563d90726e459bc7cc4d7df3f0426 7126 web optional curl_8.23.0~rc3-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJNBAEBCgA3FiEECgzx8d8+AINglLHJt4M9ggJ8mQsFAmrG9SQZHGNoYXJsZXNt
ZWxhcmFAcmlzZXVwLm5ldAAKCRC3gz2CAnyZCy4rEAC7w8gfn5Z1J3jLPxT3rt4g
1lSo6CJzokhWx0yKdHLIVShp7lxkrSigQwWzBA4UoXkA9ZpekaDLboX6bn7+iydt
+qMwZeSAiiCgRfPyekLCXKIsDPkRnfhF+lhXxVoHG/oDcEJMyP43j38dBQyyIO51
5mxX61SnUpjfNxrojttva3bjKaezU93oj7+9nr+R1/1ocfU5X36g/I4donFqqeUl
CT5zFTLY7KxDZxU4m2VSzxyQkzWqAB3TfJHqEm/t/rfemXpyK5taCKd5OBwOxc4N
O56htun36zO7vF8D6OSA+OZc7WWSJMpNd2GRyg13O0nimfXz5TdOFH0KC48c/oMW
xoYycc2MgL/mTBH68rwswvx7mRM2OmT1GMLojLSsJUp0OI5n6DfJN/mjo9G003p1
48jgE9Z3siOTq8p+83UslvbldVVmiZ0SRPk0p8h5JYgfuXtvCkp3tB2emmikCdSf
0ECvFjvDSnxmUAqYpDhHnmA+8HD72hvPaAHkqDczqT6bBa50SvGgBUOHSv7poLb/
5hh0kmeZuQmhjbGfSYhhH5vmjXMAOw54Jv4TkjTu1GKUG7FYheXtWL+yZCYfP8uk
kFrJ0LqvfiPPMUYEUjSZKPG4Cd7mna+0uPAE9Q5HXpA2b8jhTKtMN7B8z3e7uHuV
dBf0ekgGMZiwPvxucygMaw==
=ZvOD
-----END PGP SIGNATURE-----