diff options
author | Michael Morony <michael.morony@gmail.com> | 2007-08-24 08:14:21 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2007-08-24 08:14:21 +0200 |
commit | 1f7a36f2c0953c60a8d7acadc281285a0b84fb46 (patch) | |
tree | b36910854ba772c399da4ef6624443b5eba0b9fc /udevmonitor.c | |
parent | 7e599863919a62b0a072b5ca7a0037527d54d335 (diff) |
set buffer size if strlcpy/strlcat indicate truncation
Diffstat (limited to 'udevmonitor.c')
-rw-r--r-- | udevmonitor.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/udevmonitor.c b/udevmonitor.c index a9cc0614ff..644a955090 100644 --- a/udevmonitor.c +++ b/udevmonitor.c @@ -43,7 +43,6 @@ static int init_udev_monitor_socket(void) { struct sockaddr_un saddr; socklen_t addrlen; - const int feature_on = 1; int retval; memset(&saddr, 0x00, sizeof(saddr)); @@ -67,9 +66,6 @@ static int init_udev_monitor_socket(void) return -1; } - /* enable receiving of the sender credentials */ - setsockopt(udev_monitor_sock, SOL_SOCKET, SO_PASSCRED, &feature_on, sizeof(feature_on)); - return 0; } |