blob: 113451e75aab0a93f790fe1ce5bc1e5ec469c7f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
diff -ru a/helper.c b/helper.c
--- a/helper.c 2025-01-10 17:16:03.332900358 +0400
+++ b/helper.c 2025-01-10 17:17:24.801652374 +0400
@@ -1,7 +1,9 @@
/*
* helper functions for scponly
*/
+#define _DEFAULT_SOURCE /* for strsep */
#include <stdio.h> /* io */
+#include <strings.h> /* for bzero */
#include <string.h> /* for str* */
#include <sys/types.h> /* for stat, getpwuid */
#include <sys/stat.h> /* for stat */
diff -ru a/scponly.c b/scponly.c
--- a/scponly.c 2025-01-10 17:16:03.332900358 +0400
+++ b/scponly.c 2025-01-10 17:18:13.274524840 +0400
@@ -6,7 +6,8 @@
*
* see CONTRIB for additional credits
*/
-
+
+#define _DEFAULT_SOURCE /* for seteuid */
#include <stdio.h> /* io */
#include <string.h> /* for str* */
#include <sys/types.h> /* for fork, wait, stat */
|