mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 00:41:15 -03:00
Fix two issues on OS X, a non-compatible use of the expr command and a bad init of a socket for the universal variable daemon
darcs-hash:20060109144418-ac50b-c6232eae5b964f66d0638289291340aa66cd5983.gz
This commit is contained in:
4
fishd.c
4
fishd.c
@@ -174,8 +174,8 @@ static int get_socket()
|
||||
|
||||
local.sun_family = AF_UNIX;
|
||||
strcpy( local.sun_path, sock_name );
|
||||
len = strlen( local.sun_path ) + sizeof( local.sun_family );
|
||||
|
||||
len = sizeof(local);
|
||||
|
||||
debug(1, L"Connect to socket at %s", sock_name);
|
||||
|
||||
if( ( s = socket( AF_UNIX, SOCK_STREAM, 0 ) ) == -1 )
|
||||
|
||||
Reference in New Issue
Block a user