summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/getenv.c
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2009-02-19 15:05:30 +0000
committeravg <avg@FreeBSD.org>2009-02-19 15:05:30 +0000
commit15d500a57e6b707a1a36908ccd272a1c35cf7a0f (patch)
tree973974c823ba55113b2a595911612aafa1a8dab8 /lib/libc/stdlib/getenv.c
parent8ee3583cc864d8a5035215d558de11774ca4ec0b (diff)
downloadFreeBSD-src-15d500a57e6b707a1a36908ccd272a1c35cf7a0f.zip
FreeBSD-src-15d500a57e6b707a1a36908ccd272a1c35cf7a0f.tar.gz
fs/udf: fix incorrect error return (-1) when reading a large dir
Not enough space in user-land buffer is not an error, userland will read further until eof is reached. So instead of propagating -1 to caller we convert it to zero/success. cd9660 code works exactly the same way. PR: kern/78987 Reviewed by: jhb (mentor) Approved by: jhb (mentor)
Diffstat (limited to 'lib/libc/stdlib/getenv.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud