Home | History | Annotate | Download | only in hostapd

Lines Matching refs:fname

1171 	char *fname = NULL;
1236 fname = hostapd_ctrl_iface_path(hapd);
1237 if (fname == NULL)
1239 os_strlcpy(addr.sun_path, fname, sizeof(addr.sun_path));
1247 if (unlink(fname) < 0) {
1251 fname);
1260 "ctrl_iface socket '%s'", fname);
1265 "not used anymore", fname);
1266 os_free(fname);
1267 fname = NULL;
1273 chown(fname, -1, hapd->conf->ctrl_interface_gid) < 0) {
1280 chown(fname, -1, hapd->iface->interfaces->ctrl_iface_group) < 0) {
1285 if (chmod(fname, S_IRWXU | S_IRWXG) < 0) {
1289 os_free(fname);
1302 if (fname) {
1303 unlink(fname);
1304 os_free(fname);
1315 char *fname;
1319 fname = hostapd_ctrl_iface_path(hapd);
1320 if (fname)
1321 unlink(fname);
1322 os_free(fname);
1441 char *fname = NULL;
1478 fname = hostapd_global_ctrl_iface_path(interface);
1479 if (fname == NULL)
1481 os_strlcpy(addr.sun_path, fname, sizeof(addr.sun_path));
1489 if (unlink(fname) < 0) {
1493 fname);
1502 "ctrl_iface socket '%s'", fname);
1507 "not used anymore", fname);
1508 os_free(fname);
1509 fname = NULL;
1515 chown(fname, -1, interface->ctrl_iface_group) < 0) {
1520 if (chmod(fname, S_IRWXU | S_IRWXG) < 0) {
1524 os_free(fname);
1535 if (fname) {
1536 unlink(fname);
1537 os_free(fname);
1545 char *fname = NULL;
1551 fname = hostapd_global_ctrl_iface_path(interfaces);
1552 if (fname) {
1553 unlink(fname);
1554 os_free(fname);