]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: Explicitly ignore return from fchmod
authordtucker@openbsd.org <dtucker@openbsd.org>
Tue, 28 Feb 2023 08:45:24 +0000 (08:45 +0000)
committerDarren Tucker <dtucker@dtucker.net>
Tue, 28 Feb 2023 09:02:29 +0000 (20:02 +1100)
similar to other calls to prevent warning.

OpenBSD-Commit-ID: fdc5287dcee0860b5a493186414226c655b0eb0a

ssh-keygen.c

index 5f8337f4e43697d0e781ef374ac97798742395d6..a49eb9447166dd41ca3b4fc07bb5df658f7e19f3 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
@@ -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 */