socket-handler.c (b70f8713e37719b6dad0cf8e1bf7f6edae5911d6) | socket-handler.c (b14ca19cf380efbf7a96a348cc6fc81e75bf0591) |
---|---|
1/** 2 * Copyright © 2016 IBM Corporation 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 --- 342 unchanged lines hidden (view full) --- 351 int rc; 352 353 sh->console = console; 354 sh->clients = NULL; 355 sh->n_clients = 0; 356 357 memset(&addr, 0, sizeof(addr)); 358 addr.sun_family = AF_UNIX; | 1/** 2 * Copyright © 2016 IBM Corporation 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 --- 342 unchanged lines hidden (view full) --- 351 int rc; 352 353 sh->console = console; 354 sh->clients = NULL; 355 sh->n_clients = 0; 356 357 memset(&addr, 0, sizeof(addr)); 358 addr.sun_family = AF_UNIX; |
359 len = console_socket_path(&addr, config_get_value(config, "socket-id")); | 359 len = console_socket_path(addr.sun_path, 360 config_get_value(config, "socket-id")); |
360 if (len < 0) { 361 if (errno) { 362 warn("Failed to configure socket: %s", strerror(errno)); 363 } else { 364 warn("Socket name length exceeds buffer limits"); 365 } 366 return -1; 367 } --- 64 unchanged lines hidden --- | 361 if (len < 0) { 362 if (errno) { 363 warn("Failed to configure socket: %s", strerror(errno)); 364 } else { 365 warn("Socket name length exceeds buffer limits"); 366 } 367 return -1; 368 } --- 64 unchanged lines hidden --- |