summary refs log tree commit diff
path: root/src/libnmc-base
diff options
context:
space:
mode:
Diffstat (limited to 'src/libnmc-base')
-rw-r--r--src/libnmc-base/nm-polkit-listener.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libnmc-base/nm-polkit-listener.c b/src/libnmc-base/nm-polkit-listener.c
index e7972faa..fbc2c704 100644
--- a/src/libnmc-base/nm-polkit-listener.c
+++ b/src/libnmc-base/nm-polkit-listener.c
@@ -534,10 +534,10 @@ begin_authentication(AuthRequest *request)
         return;
     }
 
-    fd_flags = fcntl(request->child_stdin, F_GETFD, 0);
+    fd_flags = fcntl(request->child_stdin, F_GETFL, 0);
     fcntl(request->child_stdin, F_SETFL, fd_flags | O_NONBLOCK);
 
-    fd_flags = fcntl(request->child_stdout, F_GETFD, 0);
+    fd_flags = fcntl(request->child_stdout, F_GETFL, 0);
     fcntl(request->child_stdout, F_SETFL, fd_flags | O_NONBLOCK);
 
     request->child_stdout_watch_source = nm_g_unix_fd_source_new(request->child_stdout,