diff options
author | Darren Tucker <dtucker@cvs.openbsd.org> | 2013-05-16 09:08:42 +0000 |
---|---|---|
committer | Darren Tucker <dtucker@cvs.openbsd.org> | 2013-05-16 09:08:42 +0000 |
commit | 9f779c9f3b3d196fb093fa92a3a22722c9303a1e (patch) | |
tree | 8aa584a9dcc96fac075e7069ec101b32e705656b /usr.bin/ssh/sshd.c | |
parent | 658c98c8f7bab420daeee4f570ea7ffd0fa0cb26 (diff) |
Fix some "unused result" warnings found via clang and -portable. ok markus@
Diffstat (limited to 'usr.bin/ssh/sshd.c')
-rw-r--r-- | usr.bin/ssh/sshd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/sshd.c b/usr.bin/ssh/sshd.c index 69f09c4764b..ad73d94a78f 100644 --- a/usr.bin/ssh/sshd.c +++ b/usr.bin/ssh/sshd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sshd.c,v 1.400 2013/05/16 04:09:14 dtucker Exp $ */ +/* $OpenBSD: sshd.c,v 1.401 2013/05/16 09:08:41 dtucker Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -1717,7 +1717,8 @@ main(int ac, char **av) /* Chdir to the root directory so that the current disk can be unmounted if desired. */ - chdir("/"); + if (chdir("/") == -1) + error("chdir(\"/\"): %s", strerror(errno)); /* ignore SIGPIPE */ signal(SIGPIPE, SIG_IGN); |