Skip to content

Commit

Permalink
Don't set DISPLAY environment variable to empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
szmi committed Mar 16, 2007
1 parent feeaf76 commit dd258a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2007-02-28 Miklos Szeredi <miklos@szeredi.hu>

* Don't set DISPLAY environment variable to "", because it breaks
ssh-askpass. Make nodelaysrv_workaround default to off, because
with this change it may have security implications.

2007-02-19 Miklos Szeredi <miklos@szeredi.hu>

* OpenSSH sftp-server can read requests faster, than it processes
Expand Down
3 changes: 1 addition & 2 deletions sshfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,6 @@ static int start_ssh(void)
if (sshfs.nodelaysrv_workaround) {
/* Hack to work around missing TCP_NODELAY setting in sshd */
sshfs.ssh_args.argv[1] = "-X";
setenv("DISPLAY", "", 1);
}

devnull = open("/dev/null", O_WRONLY);
Expand Down Expand Up @@ -2609,7 +2608,7 @@ int main(int argc, char *argv[])
sshfs.blksize = 4096;
sshfs.max_read = 65536;
sshfs.nodelay_workaround = 1;
sshfs.nodelaysrv_workaround = 1;
sshfs.nodelaysrv_workaround = 0;
sshfs.rename_workaround = 0;
sshfs.truncate_workaround = 0;
sshfs.buflimit_workaround = 1;
Expand Down

0 comments on commit dd258a5

Please sign in to comment.