зеркало из https://github.com/Azure/sonic-openssh.git
Родитель
e1c0912cb6
Коммит
2953d0fb4e
|
@ -1,3 +1,9 @@
|
|||
20020624
|
||||
- OpenBSD CVS Sync
|
||||
- deraadt@cvs.openbsd.org 2002/06/23 03:25:50
|
||||
[tildexpand.c]
|
||||
KNF
|
||||
|
||||
20020623
|
||||
- (stevesk) [configure.ac] bug #255 LOGIN_NEEDS_UTMPX for AIX.
|
||||
- (bal) removed GNUism for getops in ssh-agent since glibc lacks optreset.
|
||||
|
@ -1041,4 +1047,4 @@
|
|||
- (stevesk) entropy.c: typo in debug message
|
||||
- (djm) ssh-keygen -i needs seeded RNG; report from markus@
|
||||
|
||||
$Id: ChangeLog,v 1.2253 2002/06/23 00:38:24 mouring Exp $
|
||||
$Id: ChangeLog,v 1.2254 2002/06/23 21:20:34 mouring Exp $
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
*/
|
||||
|
||||
#include "includes.h"
|
||||
RCSID("$OpenBSD: tildexpand.c,v 1.12 2001/08/11 22:51:27 jakob Exp $");
|
||||
RCSID("$OpenBSD: tildexpand.c,v 1.13 2002/06/23 03:25:50 deraadt Exp $");
|
||||
|
||||
#include "xmalloc.h"
|
||||
#include "log.h"
|
||||
|
@ -67,6 +67,7 @@ tilde_expand_filename(const char *filename, uid_t my_uid)
|
|||
if (len > MAXPATHLEN)
|
||||
fatal("Home directory too long (%d > %d", len-1, MAXPATHLEN-1);
|
||||
expanded = xmalloc(len);
|
||||
snprintf(expanded, len, "%s%s%s", pw->pw_dir, strcmp(pw->pw_dir, "/") ? "/" : "", cp + 1);
|
||||
snprintf(expanded, len, "%s%s%s", pw->pw_dir,
|
||||
strcmp(pw->pw_dir, "/") ? "/" : "", cp + 1);
|
||||
return expanded;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче