diff options
author | dtucker@openbsd.org <dtucker@openbsd.org> | 2023-02-28 08:45:24 +0000 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2023-02-28 20:02:29 +1100 |
commit | 44ca56ba0b3f531f1d85730cc701097cd49e6868 (patch) | |
tree | 8536bf30a724b9e9b95da12736dad8d1eda7299a | |
parent | 803392933a3a6f09f834aa5f0c2aab06a3b382f4 (diff) | |
download | openssh-git-44ca56ba0b3f531f1d85730cc701097cd49e6868.tar.gz |
upstream: Explicitly ignore return from fchmod
similar to other calls to prevent warning.
OpenBSD-Commit-ID: fdc5287dcee0860b5a493186414226c655b0eb0a
-rw-r--r-- | ssh-keygen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ssh-keygen.c b/ssh-keygen.c index 5f8337f4..a49eb944 100644 --- a/ssh-keygen.c +++ b/ssh-keygen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-keygen.c,v 1.462 2023/02/10 04:56:30 djm Exp $ */ +/* $OpenBSD: ssh-keygen.c,v 1.463 2023/02/28 08:45:24 dtucker Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -1337,7 +1337,7 @@ do_known_hosts(struct passwd *pw, const char *name, int find_host, unlink(tmp); fatal("fdopen: %s", strerror(oerrno)); } - fchmod(fd, sb.st_mode & 0644); + (void)fchmod(fd, sb.st_mode & 0644); inplace = 1; } /* XXX support identity_file == "-" for stdin */ |