]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - src/misc-progs/setuid.h
Firewall: Fix errormessages on rulecreation when red has no IP
[people/teissler/ipfire-2.x.git] / src / misc-progs / setuid.h
index d1155c5e8dedac0f426808888941136281f9fc6d..2e90537a6db86bd4e1f0ffb4b4a6f238f948afa5 100644 (file)
@@ -15,7 +15,7 @@
 /* As nothing in setuid.c uses STRING_SIZE specifically there's no real reason
  * to redefine it if it already is set */
 #ifndef STRING_SIZE
-#define STRING_SIZE 256
+#define STRING_SIZE 1024
 #endif
 
 extern char * trusted_env[4];
@@ -23,7 +23,10 @@ extern char * trusted_env[4];
 int system_core(char* command, uid_t uid, gid_t gid, char *error);
 int safe_system(char* command);
 int unpriv_system(char* command, uid_t uid, gid_t gid);
-size_t strlcat(char *dst, const char *src, size_t len);
 int initsetuid(void);
 
+/* Compatibility for the local copy of strlcat,
+ * which has been removed. */
+#define strlcat(src, dst, size) strncat(src, dst, size)
+
 #endif