mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-14 11:58:08 +02:00
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:
parent
d29cc5bae0
commit
e7b063b589
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue