Skip to content

Instantly share code, notes, and snippets.

@tuxillo
tuxillo / 0001-Add-missing-cast-to-double.patch
Created January 14, 2017 10:44
Add missing cast to double
From fcc2307568fe2a92bef6783f0937bc34552f28a2 Mon Sep 17 00:00:00 2001
From: Antonio Huete Jimenez <tuxillo@quantumachine.net>
Date: Sat, 14 Jan 2017 00:16:43 +0000
Subject: Add missing cast to double
---
src/commands/CmdBurndown.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/commands/CmdBurndown.cpp b/src/commands/CmdBurndown.cpp
@tuxillo
tuxillo / 0001-Add-missing-cast-to-double.patch
Created January 14, 2017 00:24
Attempt to fix build in SunOS-like environments.
From fcc2307568fe2a92bef6783f0937bc34552f28a2 Mon Sep 17 00:00:00 2001
From: Antonio Huete Jimenez <tuxillo@quantumachine.net>
Date: Sat, 14 Jan 2017 00:16:43 +0000
Subject: [PATCH 1/2] Add missing cast to double
---
src/commands/CmdBurndown.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/commands/CmdBurndown.cpp b/src/commands/CmdBurndown.cpp
@tuxillo
tuxillo / 0001-Attempt-to-fix-build-in-SunOS-like-environments.patch
Created January 13, 2017 23:31
[PATCH] Attempt to fix build in SunOS-like environments.
From c269b75d94efdfeb15beaea338416a7c3624ec46 Mon Sep 17 00:00:00 2001
From: Antonio Huete Jimenez <tuxillo@quantumachine.net>
Date: Mon, 9 Jan 2017 19:54:58 +0000
Subject: [PATCH] Attempt to fix build in SunOS-like environments.
---
CMakeLists.txt | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
diff --git a/usr.sbin/installer/libinstaller/survey.c b/usr.sbin/installer/libinstaller/survey.c
index 42b5a28..3dad695 100644
--- a/usr.sbin/installer/libinstaller/survey.c
+++ b/usr.sbin/installer/libinstaller/survey.c
@@ -199,11 +199,23 @@ survey_storage(struct i_fn_args *a)
command_set_log_mode(cmd, COMMAND_LOG_SILENT);
aura_dict_rewind(di);
- while (!aura_dict_eof(di)) {
- aura_dict_get_current_key(di, &rk, &rk_len),
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <err.h>
#include <unistd.h>
#define MAXMSGLEN 1024
char ktext[MAXMSGLEN] = {0};
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <err.h>
#define KEYFILE "otpkey.dat"
#define MAXMSGLEN 1024
char ktext[MAXMSGLEN] = {0};
From 025c7794f89c68e80fe75c041b74b475388b1e2e Mon Sep 17 00:00:00 2001
From: Antonio Huete Jimenez <tuxillo@quantumachine.net>
Date: Sun, 29 Dec 2013 21:45:34 +0100
Subject: [PATCH] libhammer - Add a function to calculate PFS paths.
---
lib/libhammer/libhammer.h | 1 +
lib/libhammer/misc.c | 20 ++++++++++++++++++++
2 files changed, 21 insertions(+)
diff --git a/lib/libhammer/Makefile b/lib/libhammer/Makefile
index e306021..d88ff51 100644
--- a/lib/libhammer/Makefile
+++ b/lib/libhammer/Makefile
@@ -1,7 +1,7 @@
# DragonflyBSD Makefile
LIB= hammer
-SRCS= crc32.c info.c misc.c stats.c
+SRCS= crc32.c info.c misc.c stats.c config.c
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#define WS " \t\r\n"
#define LIBHAMMER_MAXCFGOPTS 6
#define TOSTR(n) #n
enum libhammer_cfglist {
diff --git a/sys/vfs/tmpfs/tmpfs_subr.c b/sys/vfs/tmpfs/tmpfs_subr.c
index 678fd1d..8310b88 100644
--- a/sys/vfs/tmpfs/tmpfs_subr.c
+++ b/sys/vfs/tmpfs/tmpfs_subr.c
@@ -1032,29 +1032,10 @@ tmpfs_chflags(struct vnode *vp, int vaflags, struct ucred *cred)
return EROFS;
error = vop_helper_setattr_flags(&flags, vaflags, node->tn_uid, cred);
- /*
- * Unprivileged processes are not permitted to unset system