summaryrefslogtreecommitdiffhomepage
path: root/scpmisc.c
AgeCommit message (Collapse)Author
2019-03-20use strlcpy & strlcat (#74)François Perrad
* 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
2016-05-25Use DROPBEAR_PATH_DEVNULL instead of undefined _PATH_DEVNULLBen Gardner
2016-01-19scp: Have `fatal()' append a newline to the messageMichael Witten
Date: Wed, 4 Nov 2015 20:33:19 -0000 It would seem that it's standard practice not to include a newline in the message text, but that results in poor formatting, as a shell's command line then begins on the line of the error message itself. This commit simply instructs `fatal()' to append a newline after the message, which should be suitable behavior for all of the invocations I've come across.
2016-01-19Add note about OpenSSH originMatt Johnston
2013-03-24Define _GNU_SOURCE for vasprintfMatt Johnston
2006-03-08Update to scp from OpenSSH portable 4.3p2Matt Johnston
--HG-- extra : convert_revision : e2bccdd6ba49edd575b1d0272c7dfee5f9f7acf6
2004-07-30get rid of the substitution... We want a fixed identifierMatt Johnston
--HG-- extra : convert_revision : d6b70dbcc1713663608033cb41cde196d44d4f2c
2004-06-01Makefile.in contains updated files requiredMatt Johnston
--HG-- extra : convert_revision : cc8a8c49dc70e632c352853a39801089b08149be