Explicitly ignore return from fchmod similar to other calls to
authordtucker <dtucker@openbsd.org>
Tue, 28 Feb 2023 08:45:24 +0000 (08:45 +0000)
committerdtucker <dtucker@openbsd.org>
Tue, 28 Feb 2023 08:45:24 +0000 (08:45 +0000)
prevent warning.

usr.bin/ssh/ssh-keygen.c

index 78a858b..8d5aa80 100644 (file)
@@ -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
@@ -1314,7 +1314,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 */