mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-09-16 06:40:41 +00:00
2004-10-15 Dan Williams <dcbw@redhat.com>
---- We have a website ---- http://people.redhat.com/dcbw/NetworkManager Patch from Robert Paskowitz: * src/NetworkManager.c - (main): Make sure we are run as root * src/NetworkManagerDevice.c - Fix type in ad-hoc setting function Patch from Thom May: * src/backends/NetworkManagerDebian.c - Make Debian backend compile again git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@243 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
3133cd9cd6
commit
267a0803f6
15
ChangeLog
15
ChangeLog
|
@ -1,3 +1,18 @@
|
|||
2004-10-15 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
---- We have a website ----
|
||||
http://people.redhat.com/dcbw/NetworkManager
|
||||
|
||||
Patch from Robert Paskowitz:
|
||||
* src/NetworkManager.c
|
||||
- (main): Make sure we are run as root
|
||||
* src/NetworkManagerDevice.c
|
||||
- Fix type in ad-hoc setting function
|
||||
|
||||
Patch from Thom May:
|
||||
* src/backends/NetworkManagerDebian.c
|
||||
- Make Debian backend compile again
|
||||
|
||||
2004-10-14 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* Tagged NetworkManager-0_3
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#include "NetworkManager.h"
|
||||
#include "NetworkManagerUtils.h"
|
||||
|
@ -553,6 +554,12 @@ int main( int argc, char *argv[] )
|
|||
gboolean enable_test_devices = FALSE;
|
||||
GMainLoop *loop = NULL;
|
||||
|
||||
if ((int)getuid() != 0)
|
||||
{
|
||||
printf( "You must be root to run NetworkManager!\n");
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
/* Parse options */
|
||||
while (1)
|
||||
{
|
||||
|
|
|
@ -1144,7 +1144,7 @@ void nm_device_set_mode_adhoc (NMDevice *dev)
|
|||
g_return_if_fail (dev != NULL);
|
||||
g_return_if_fail (nm_device_is_wireless (dev));
|
||||
|
||||
/* Force the card into Managed/Infrastructure mode */
|
||||
/* Force the card into Adhoc mode */
|
||||
sk = iw_sockets_open ();
|
||||
if (sk >= 0)
|
||||
{
|
||||
|
|
|
@ -249,15 +249,3 @@ void nm_system_load_device_modules (void)
|
|||
return;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* nm_system_device_update_config_info
|
||||
*
|
||||
* Retrieve any relevant configuration info for a particular device
|
||||
* from the system network configuration information. Clear out existing
|
||||
* info before setting stuff too.
|
||||
*
|
||||
*/
|
||||
void nm_system_device_update_config_info (NMDevice *dev)
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue