I hereby claim:
- I am vortec on github.
- I am fkochem (https://keybase.io/fkochem) on keybase.
- I have a public key whose fingerprint is E272 6047 B340 E2C9 E6D4 4191 3EBD EAC9 4504 DB5C
To claim this, I am signing this object:
php > $a = 0; | |
php > var_dump([$a[0] => $a[0]]); | |
array(1) { | |
[""]=> | |
NULL | |
} | |
php > |
README for Samba Virtual File System (VFS) Example | |
=================================================== | |
This directory contains skeleton VFS modules. When used, | |
this module simply passes all requests back to the disk functions | |
(i.e it operates as a passthrough filter). It should be | |
useful as a starting point for developing new VFS | |
modules. | |
Please look at skel_opaque.c when you want your module to provide |
I hereby claim:
To claim this, I am signing this object:
#include "../source3/include/includes.h" | |
#include "lib/util/tevent_unix.h" | |
#include "lib/util/tevent_ntstatus.h" | |
static int fspattern_connect(vfs_handle_struct *handle, | |
const char *service, | |
const char *user) | |
{ | |
FILE *f = fopen("/tmp/mylog.txt", "w"); | |
if (f != NULL) |
#!/usr/bin/env python | |
bld.SAMBA3_MODULE('vfs_fspattern', | |
subsystem='vfs', | |
source='fspattern.c', | |
deps='samba-util', | |
init_function='samba_init_module', | |
internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_fspattern'), | |
enabled=True) |
#!/usr/bin/env python | |
bld.SAMBA3_MODULE('vfs_fspattern', | |
subsystem='vfs', | |
source='fspattern.c', | |
deps='samba-util', | |
init_function='', | |
internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_fspattern'), | |
enabled=True) |
diff --git a/fspattern/fspattern.c b/fspattern/fspattern.c | |
new file mode 100644 | |
index 0000000..7afd838 | |
--- /dev/null | |
+++ b/fspattern/fspattern.c | |
@@ -0,0 +1,47 @@ | |
+#include "../source3/include/includes.h" | |
+#include "lib/util/tevent_unix.h" | |
+#include "lib/util/tevent_ntstatus.h" | |
+ |
#include "../source3/include/includes.h" | |
#include "lib/util/tevent_unix.h" | |
#include "lib/util/tevent_ntstatus.h" | |
static int fspattern_connect(vfs_handle_struct *handle, | |
const char *service, | |
const char *user) | |
{ | |
FILE *f = fopen("/tmp/mylog.txt", "w"); | |
if (f != NULL) |
vanilla (ipv6:::1:45743) connect to service public initially as user nobody (uid=65534, gid=65534) (pid 23041) | |
tconX service=PUBLIC | |
Transaction 8 of length 57 (0 toread) | |
switch message SMBecho (pid 23041) conn 0x7f823c843cd0 | |
echo 1 times | |
vanilla (ipv6:::1:45743) closed connection to service public | |
Server exit (failed to receive smb request) |
(versionbump)[vortec@MBPro] ~VIRTUAL_ENV/versionbump (git)-[master]$ time tox †: 0 | |
GLOB sdist-make: /Users/vortec/workspace/virtualenvs/versionbump/versionbump/setup.py | |
py26 inst-nodeps: /Users/vortec/workspace/virtualenvs/versionbump/versionbump/.tox/dist/versionbump-1.0.0.zip | |
py26 runtests: PYTHONHASHSEED='754264446' | |
py26 runtests: commands[0] | py.test | |
========================================= test session starts ========================================== | |
platform darwin -- Python 2.6.8 -- py-1.4.20 -- pytest-2.5.2 | |
collected 14 items | |
tests/unit/test_filebump.py ...... |