ladybird/Userland/Utilities
Tim Schumacher d7797c8bf8 Userland: Treat inet_pton returning 0 as an error
The POSIX man-page states that inet_pton returns 0 if the input is not a
valid IPv4 dotted-decimal string or a valid IPv6 address string. This is
also how it is implemented in SerenityOS.

This means that we should treat a return value of 0 as an error to avoid
using an invalid address (or 0.0.0.0).
2021-05-27 22:56:21 +02:00
..
adjtime.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
allocate.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
aplay.cpp LibIPC: Remove unnecessary IPC::ServerConnection::handshake() 2021-05-23 09:53:55 +02:00
arp.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
avol.cpp LibIPC: Remove unnecessary IPC::ServerConnection::handshake() 2021-05-23 09:53:55 +02:00
base64.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
basename.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
beep.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
bt.cpp Userland: Tweak the visual display of the bt utility 2021-05-23 09:00:13 +04:30
cal.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
cat.cpp Utilities: Use Vector<String> positional arguments in some places 2021-04-29 11:28:01 +02:00
checksum.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
chgrp.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
chmod.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
chown.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
chres.cpp Userland: Update IPC calls to use proxies 2021-05-03 21:14:40 +02:00
chroot.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
cksum.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
clear.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
CMakeLists.txt LibWasm: Add execution hooks and a debugger mode to the wasm tool 2021-05-26 15:34:13 +04:30
copy.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
cp.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
cpp-parser.cpp LibCpp: Generalize ASTNode::dump() to support redirecting its output 2021-05-19 23:19:07 +02:00
crash.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
cut.cpp Everywhere: "indexes" => "indices" 2021-04-29 22:23:52 +02:00
date.cpp Userland: Fix 64-bit portability issues 2021-05-03 08:42:39 +02:00
dd.cpp Utilites: Make dd truncate output file 2021-05-27 15:19:06 +02:00
ddate.cpp Revert "Userland: static vs non-static constexpr variables" 2021-05-21 10:30:52 +01:00
df.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
dirname.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
disasm.cpp Everywhere: Add missing includes for <AK/OwnPtr.h> 2021-05-19 21:36:57 +02:00
disk_benchmark.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
dmesg.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
du.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
echo.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
env.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
errno.cpp Utilities: Add errno utility 2021-05-15 23:51:50 +01:00
expr.cpp AK+Everywhere: Consolidate String::index_of() and String::find() 2021-05-24 11:59:18 +02:00
false.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
fgrep.cpp Utilities: Fix fgrep assertion include 2021-05-23 18:10:29 +02:00
file.cpp file: Output directory when path is a directory 2021-05-27 13:18:23 +01:00
find.cpp Utilites: Make find respect lack of -L when iterating over directories 2021-05-18 08:11:42 +02:00
flock.cpp LibC: Do not include errno.h inside unistd.h 2021-05-14 22:24:02 +02:00
fortune.cpp Userland: Migrate from arc4random_uniform() to get_random_uniform() 2021-05-14 22:24:02 +02:00
functrace.cpp Userland: Fix 64-bit portability issues 2021-05-03 08:42:39 +02:00
gml-format.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
grep.cpp Utilities: Fix grep match when reading from stdin 2021-05-20 23:53:06 +02:00
gron.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
groups.cpp Userland: Add groups program 2021-05-05 15:12:30 +01:00
gunzip.cpp Utilities: Use Vector<String> positional arguments in some places 2021-04-29 11:28:01 +02:00
gzip.cpp Utilities: Use Vector<String> positional arguments in some places 2021-04-29 11:28:01 +02:00
head.cpp Userland: Refactor head(1) to not use stdio 2021-05-04 22:36:58 +02:00
hexdump.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
host.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
hostname.cpp Userland: Move HOST_NAME_MAX to limits.h 2021-04-27 23:06:16 +02:00
id.cpp Everywhere: Remove empty line after function body opening curly brace 2021-04-25 20:20:00 +02:00
ifconfig.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
ini.cpp Everywhere: Use linusg@serenityos.org for my copyright headers 2021-04-22 22:51:19 +02:00
jp.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
js.cpp js: Consolidate and re-implement the load() function 2021-05-26 01:04:09 +01:00
keymap.cpp Userland: Preserve keyboard mapping preference on reboot (#6955) 2021-05-09 15:56:03 +02:00
kill.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
killall.cpp LibCore: Make ProcessStatisticsReader return results in a Vector 2021-05-23 11:10:15 +02:00
ln.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
ls.cpp ls: Fix incorrect -t sort order 2021-05-25 13:23:17 +02:00
lsirq.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
lsof.cpp LibCore: Make ProcessStatisticsReader return results in a Vector 2021-05-23 11:10:15 +02:00
lspci.cpp Revert "Userland: static vs non-static constexpr variables" 2021-05-21 10:30:52 +01:00
man.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
md.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
misbehaving-application.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
mkdir.cpp LibC: Do not include errno.h inside unistd.h 2021-05-14 22:24:02 +02:00
mkfifo.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
mknod.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
mktemp.cpp LibC: Remove static from function local constexpr variable 2021-05-18 08:07:21 +02:00
modload.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
modunload.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
more.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
mount.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
mv.cpp Utilities: Fix mv command requesting incorrect path 2021-05-08 15:22:47 +02:00
nc.cpp Userland: Treat inet_pton returning 0 as an error 2021-05-27 22:56:21 +02:00
netstat.cpp Utilities: Implement a netstat command 2021-05-15 11:27:20 +01:00
nl.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
notify.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
nproc.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
ntpquery.cpp Userland: Change typedef to using directive 2021-05-21 10:07:22 +01:00
open.cpp Everywhere: Use linusg@serenityos.org for my copyright headers 2021-04-22 22:51:19 +02:00
pape.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
passwd.cpp LibC: Implement support for getspnam() and friends 2021-05-01 12:40:12 +02:00
paste.cpp Userland: Implement paste --watch mode 2021-05-10 19:09:53 +01:00
pathchk.cpp Everywhere: "file name" => "filename" 2021-04-29 22:16:18 +02:00
pidof.cpp LibCore: Make ProcessStatisticsReader return results in a Vector 2021-05-23 11:10:15 +02:00
ping.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
pmap.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
PreprocessorTest.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
printf.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
pro.cpp Services: Rename ProtocolServer to RequestServer 2021-04-25 19:04:34 +02:00
profile.cpp Kernel: Generate page fault events from the kernel profiler 2021-05-19 22:51:42 +02:00
ps.cpp ps: Sort output by PID :^) 2021-05-23 11:26:19 +02:00
purge.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
readelf.cpp AK+Kernel+LibELF: Remove the need for IteratorDecision::Continue 2021-05-16 10:36:52 +01:00
readlink.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
realpath.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
reboot.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
rev.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
rm.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
rmdir.cpp Userland: Make rmdir take multiple paths 2021-04-26 09:32:42 +02:00
seq.cpp Utilities: Fix const-correctness inside seq 2021-05-14 22:24:02 +02:00
shot.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
shuf.cpp Userland: Migrate from arc4random_uniform() to get_random_uniform() 2021-05-14 22:24:02 +02:00
shutdown.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
sleep.cpp LibC: Do not include errno.h inside unistd.h 2021-05-14 22:24:02 +02:00
sort.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
sql.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
stat.cpp LibC: Move makedev(), major(), minor(), to sys/types.h 2021-05-14 22:24:02 +02:00
strace.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
stty.cpp Userland: Fix stty not setting control characters 2021-05-24 20:14:21 +01:00
su.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
sync.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
syscall.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
sysctl.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
tac.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
tail.cpp LibCore+Everywhere: Move SeekMode out of IODevice 2021-05-12 11:00:45 +01:00
tar.cpp tar: Ignore "extended headers" 2021-05-24 00:01:01 +01:00
tee.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
telws.cpp Utilities: Update telws to use the isolated WebSocket service 2021-04-25 19:04:34 +02:00
test_efault.cpp LibC: Do not include errno.h inside unistd.h 2021-05-14 22:24:02 +02:00
test_env.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
test_io.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
test-bindtodevice.cpp Userland: Rename e1k0 to ep0s7 2021-05-22 15:42:54 +01:00
test-crypto.cpp LibCrypto: Add the SHA-384 hash algorithm 2021-05-19 09:18:45 +02:00
test-fuzz.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00
test-pthread.cpp Userland: Rename LibThread => LibThreading 2021-05-22 18:54:22 +02:00
test-unveil.cpp Utilities: Fix test-unveil INT_MAX include 2021-05-23 18:10:29 +02:00
test.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
top.cpp LibCore: Make ProcessStatisticsReader return results in a Vector 2021-05-23 11:10:15 +02:00
touch.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
tr.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
traceroute.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
tree.cpp Userland: Move HOST_NAME_MAX to limits.h 2021-04-27 23:06:16 +02:00
true.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
truncate.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
tt.cpp LibC: Move mman.h to sys/mman.h 2021-05-14 22:24:02 +02:00
tty.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
umount.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
uname.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
uniq.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
unzip.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
uptime.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
useradd.cpp Everywhere: Add a blank line after copyright header where missing 2021-05-15 00:27:09 +01:00
userdel.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
utmpupdate.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
w.cpp LibCore: Make ProcessStatisticsReader return results in a Vector 2021-05-23 11:10:15 +02:00
wasm.cpp LibWasm: Let the interpreter itself manage the call frame 2021-05-27 17:28:41 +04:30
watch.cpp Utilities: Correct non-standard assert macros includes 2021-05-17 18:14:05 +01:00
wc.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
which.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
whoami.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
xargs.cpp Everywhere: Use "the SerenityOS developers." in copyright headers 2021-04-29 00:59:26 +02:00
yes.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
zip.cpp LibCore+Everywhere: Move OpenMode out of IODevice 2021-05-12 11:00:45 +01:00