summaryrefslogtreecommitdiff
path: root/libbb/create_icmp_socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/create_icmp_socket.c')
-rw-r--r--libbb/create_icmp_socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/create_icmp_socket.c b/libbb/create_icmp_socket.c
index 26120a6..431c4d8 100644
--- a/libbb/create_icmp_socket.c
+++ b/libbb/create_icmp_socket.c
@@ -31,7 +31,7 @@ int create_icmp_socket(void)
}
/* drop root privs if running setuid */
- setuid(getuid());
+ xsetuid(getuid());
return sock;
}