mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-30 09:40:11 +01:00
Use S_IRWXU rather than raw octal number, and fix a printf format string
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1416 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
589549bf83
commit
4af8827824
1 changed files with 2 additions and 2 deletions
|
|
@ -2349,7 +2349,7 @@ supplicant_timeout_cb (gpointer user_data)
|
|||
|
||||
g_assert (self);
|
||||
|
||||
nm_info ("Activation (%s/wireless): association took too long (>%ss), failing activation.",
|
||||
nm_info ("Activation (%s/wireless): association took too long (>%ds), failing activation.",
|
||||
nm_device_get_iface (dev), NM_SUPPLICANT_TIMEOUT);
|
||||
|
||||
if (nm_device_is_activating (dev))
|
||||
|
|
@ -2409,7 +2409,7 @@ supplicant_interface_init (NMDevice80211Wireless *self)
|
|||
int tries = 0;
|
||||
|
||||
/* Ensure our control socket directory is around */
|
||||
mkdir (NM_WPA_CTRL_IFACE_DIR, 0700);
|
||||
mkdir (NM_WPA_CTRL_IFACE_DIR, S_IRWXU);
|
||||
|
||||
if (!(ctrl = wpa_ctrl_open (WPA_SUPPLICANT_GLOBAL_SOCKET, NM_WPA_CTRL_IFACE_DIR)))
|
||||
goto exit;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue