Skip to content

Instantly share code, notes, and snippets.

View hiboma's full-sized avatar

Hiroya Ito hiboma

View GitHub Profile
@hiboma
hiboma / proftpd-1.3.2c-HiddenStoresReservePerm.patch
Created January 21, 2010 14:31
A proftpd patch to preserve file's permission under configuration 'HiddenStore on'
--- mod_xfer.c.org 2010-01-21 23:15:05.000000000 +0900
+++ mod_xfer.c 2010-01-21 23:18:20.000000000 +0900
@@ -1403,6 +1403,37 @@
return xfer_pre_stor(cmd);
}
+static void hidden_stores_preserve_perm(const char *xfer_path,
+ const char *path_hidden) {
+ struct stat st;
+ int res, use_root_privs = TRUE;
%define module_name mod_libmemcached_deny
%define hash 7d894e2
Summary: A proftpd module: IP based access control module with libmemcahced
Name: proftpd-%{module_name}
Version: 0.1
Release: 1
License: Perl
Group: System Environment/Daemons
URL: http://github.com/hiboma/proftpd-%{module_name}
obj-m := oreore.o
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
default:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
clean:
rm -f *.o
rm -f *.mod.c
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/security.h>
/* should we print out debug messages */
static int debug = 0;
module_param(debug, bool, 0600);
MODULE_PARM_DESC(debug, "Debug enabled or not");
#include <sys/ioctl.h>
#include <error.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>
int main(int argc, const char *argv[]) {
Name: dist-hosting-ssh
Version: 0.0.1
Release: 1%{?dist}
License: LGPL
Group: Distribute Packages
Summary: distribute ssh packages
Requires: openssh
BuildArch: noarch
%files
We couldn’t find that file to show.
#!/usr/bin/perl
print "Content-Type: text/html\n\n";
print 1;
=pod
abcdefghijklmn
=cut
diff -aurN FFmpeg-Command-0.13.org/MANIFEST FFmpeg-Command-0.13/MANIFEST
--- FFmpeg-Command-0.13.org/MANIFEST 2010-05-12 15:31:43.000000000 +0900
+++ FFmpeg-Command-0.13/MANIFEST 2010-05-12 15:37:44.000000000 +0900
@@ -5,6 +5,7 @@
README
lib/FFmpeg/Command.pm
t/00-load.t
+t/01-coderef.t
t/boilerplate.t
t/pod-coverage.t
#!/usr/bin/perl
while(1) { print 1 } #無限ループ!!!