summaryrefslogtreecommitdiff
path: root/ssh-agent-filter.C
diff options
context:
space:
mode:
Diffstat (limited to 'ssh-agent-filter.C')
-rw-r--r--ssh-agent-filter.C3
1 files changed, 2 insertions, 1 deletions
diff --git a/ssh-agent-filter.C b/ssh-agent-filter.C
index 2878678..cbf5f45 100644
--- a/ssh-agent-filter.C
+++ b/ssh-agent-filter.C
@@ -543,8 +543,9 @@ int main (int const argc, char const * const * const argv) {
exit(EX_OK);
}
+ // the following stuff is optional, so we don't do error checking
setsid();
- chdir("/");
+ static_cast<void>(chdir("/"));
int devnull = open("/dev/null", O_RDWR);
dup2(devnull, 0);
dup2(devnull, 1);