annotate .gitignore @ 1630:9579377b5f8b

use strlcpy & strlcat (#74) * refactor checkpubkeyperms() with safe BSD functions fix gcc8 warnings ``` svr-authpubkey.c: In function 'checkpubkeyperms': svr-authpubkey.c:427:2: warning: 'strncat' specified bound 5 equals source length [-Wstringop-overflow=] strncat(filename, "/.ssh", 5); /* strlen("/.ssh") == 5 */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ svr-authpubkey.c:433:2: warning: 'strncat' specified bound 16 equals source length [-Wstringop-overflow=] strncat(filename, "/authorized_keys", 16); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ``` see https://www.sudo.ws/todd/papers/strlcpy.html * restore strlcpy in xstrdup see original https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/xmalloc.c?rev=1.16
author François Perrad <francois.perrad@gadz.org>
date Wed, 20 Mar 2019 15:09:19 +0100
parents 03a42f41cf2c
children 76189c9ffea2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1393
ab4a3f783bfd Add .gitignore file
Ben Gardner <bgardner@wabtec.com>
parents:
diff changeset
1 *~
ab4a3f783bfd Add .gitignore file
Ben Gardner <bgardner@wabtec.com>
parents:
diff changeset
2 *.o
ab4a3f783bfd Add .gitignore file
Ben Gardner <bgardner@wabtec.com>
parents:
diff changeset
3 *.a
ab4a3f783bfd Add .gitignore file
Ben Gardner <bgardner@wabtec.com>
parents:
diff changeset
4 *.da
ab4a3f783bfd Add .gitignore file
Ben Gardner <bgardner@wabtec.com>
parents:
diff changeset
5 *.bb
ab4a3f783bfd Add .gitignore file
Ben Gardner <bgardner@wabtec.com>
parents:
diff changeset
6 *.bbg
ab4a3f783bfd Add .gitignore file
Ben Gardner <bgardner@wabtec.com>
parents:
diff changeset
7 *.prof
ab4a3f783bfd Add .gitignore file
Ben Gardner <bgardner@wabtec.com>
parents:
diff changeset
8 /autom4te.cache
ab4a3f783bfd Add .gitignore file
Ben Gardner <bgardner@wabtec.com>
parents:
diff changeset
9 /config.log
ab4a3f783bfd Add .gitignore file
Ben Gardner <bgardner@wabtec.com>
parents:
diff changeset
10 /config.status
ab4a3f783bfd Add .gitignore file
Ben Gardner <bgardner@wabtec.com>
parents:
diff changeset
11 /dbclient
ab4a3f783bfd Add .gitignore file
Ben Gardner <bgardner@wabtec.com>
parents:
diff changeset
12 /dropbear
ab4a3f783bfd Add .gitignore file
Ben Gardner <bgardner@wabtec.com>
parents:
diff changeset
13 /dropbearconvert
ab4a3f783bfd Add .gitignore file
Ben Gardner <bgardner@wabtec.com>
parents:
diff changeset
14 /dropbearkey
ab4a3f783bfd Add .gitignore file
Ben Gardner <bgardner@wabtec.com>
parents:
diff changeset
15 /dropbearmulti
ab4a3f783bfd Add .gitignore file
Ben Gardner <bgardner@wabtec.com>
parents:
diff changeset
16 /scp
ab4a3f783bfd Add .gitignore file
Ben Gardner <bgardner@wabtec.com>
parents:
diff changeset
17 /scp-progress
ab4a3f783bfd Add .gitignore file
Ben Gardner <bgardner@wabtec.com>
parents:
diff changeset
18 Makefile
ab4a3f783bfd Add .gitignore file
Ben Gardner <bgardner@wabtec.com>
parents:
diff changeset
19 config.h
ab4a3f783bfd Add .gitignore file
Ben Gardner <bgardner@wabtec.com>
parents:
diff changeset
20 config.h.in
ab4a3f783bfd Add .gitignore file
Ben Gardner <bgardner@wabtec.com>
parents:
diff changeset
21 configure
1540
03a42f41cf2c ignore default_options_guard.h
Matt Johnston <matt@ucc.asn.au>
parents: 1393
diff changeset
22 default_options_guard.h