diff options
| author | tb <> | 2021-10-21 08:33:07 +0000 |
|---|---|---|
| committer | tb <> | 2021-10-21 08:33:07 +0000 |
| commit | f84744447839633dcb3a43f99540a7ca822878dd (patch) | |
| tree | e07f083ffcf4561934aabb34ac339cb3edf0e0f5 /src | |
| parent | 4313975afe330132e4517582c0c1e3fe6ea26705 (diff) | |
| download | openbsd-f84744447839633dcb3a43f99540a7ca822878dd.tar.gz openbsd-f84744447839633dcb3a43f99540a7ca822878dd.tar.bz2 openbsd-f84744447839633dcb3a43f99540a7ca822878dd.zip | |
Print uid with %u instead of %i.
Prompted by a diff by Jonas Termansen, discussed with deraadt, millert
ok jsing
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libtls/tls_config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libtls/tls_config.c b/src/lib/libtls/tls_config.c index 9144dad952..4ca497a032 100644 --- a/src/lib/libtls/tls_config.c +++ b/src/lib/libtls/tls_config.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: tls_config.c,v 1.63 2021/01/21 22:03:25 eric Exp $ */ | 1 | /* $OpenBSD: tls_config.c,v 1.64 2021/10/21 08:33:07 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> |
| 4 | * | 4 | * |
| @@ -722,7 +722,7 @@ tls_config_set_session_fd(struct tls_config *config, int session_fd) | |||
| 722 | 722 | ||
| 723 | if (sb.st_uid != getuid()) { | 723 | if (sb.st_uid != getuid()) { |
| 724 | tls_config_set_errorx(config, "session file has incorrect " | 724 | tls_config_set_errorx(config, "session file has incorrect " |
| 725 | "owner (uid %i != %i)", sb.st_uid, getuid()); | 725 | "owner (uid %u != %u)", sb.st_uid, getuid()); |
| 726 | return (-1); | 726 | return (-1); |
| 727 | } | 727 | } |
| 728 | mugo = sb.st_mode & (S_IRWXU|S_IRWXG|S_IRWXO); | 728 | mugo = sb.st_mode & (S_IRWXU|S_IRWXG|S_IRWXO); |
