mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-02-03 21:52:24 +00:00
uxpty.c: silence compiler warning about chdir().
I didn't check the error code, which for some reason didn't give me a -Werror warning on Ubuntu 18.04, but does on 16.04.
This commit is contained in:
parent
2e3a1c6d69
commit
3d8563ec9d
@ -1145,8 +1145,12 @@ Backend *pty_backend_create(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dir)
|
if (dir) {
|
||||||
chdir(dir);
|
if (chdir(dir) < 0) {
|
||||||
|
/* Ignore the error - nothing we can sensibly do about it,
|
||||||
|
* and our existing cwd is as good a fallback as any. */
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* SIGINT, SIGQUIT and SIGPIPE may have been set to ignored by
|
* SIGINT, SIGQUIT and SIGPIPE may have been set to ignored by
|
||||||
|
Loading…
Reference in New Issue
Block a user