mirror of
https://repo.or.cz/socat.git
synced 2025-07-18 00:53:25 +00:00
Print warning messages per default; new options -d0..-d4
This commit is contained in:
parent
dc777a00bb
commit
557f299b82
17 changed files with 115 additions and 62 deletions
|
@ -149,9 +149,7 @@ static int xioopen_pty(int argc, const char *argv[], struct opt *opts, int xiofl
|
|||
#endif /* HAVE_OPENPTY */
|
||||
|
||||
if (!retropt_string(opts, OPT_SYMBOLIC_LINK, &linkname)) {
|
||||
if (Unlink(linkname) < 0 && errno != ENOENT) {
|
||||
Error2("unlink(\"%s\"): %s", linkname, strerror(errno));
|
||||
}
|
||||
xio_unlink(linkname, E_ERROR);
|
||||
if (Symlink(ptyname, linkname) < 0) {
|
||||
Error3("symlink(\"%s\", \"%s\"): %s",
|
||||
ptyname, linkname, strerror(errno));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue