dispatcher-daemon/NetworkManagerDispatcher.c: main(): print the actual error

and not just the errno number on daemon() failure.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1074 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Robert Love 2005-10-26 21:10:20 +00:00
parent d29cc5bae0
commit e7b063b589

View file

@ -55,7 +55,7 @@ typedef enum NMDAction NMDAction;
* nmd_permission_check
*
* Verify that the given script has the permissions we want. Specifically,
* very that the file is
* ensure that the file is
* - A regular file.
* - Owned by root.
* - Not writable by the group or by other.
@ -336,7 +336,7 @@ int main (int argc, char *argv[])
if (become_daemon && daemon (FALSE, FALSE) < 0)
{
nm_warning ("NetworkManagerDispatcher could not daemonize. errno = %d", errno );
nm_warning ("NetworkManagerDispatcher could not daemonize: %s", strerror (errno));
exit (1);
}