search for: module_id

Displaying 20 results from an estimated 33 matches for "module_id".

Did you mean: module_ir
2003 Mar 11
0
PATCH: rsyncd.conf permission options
...er(char *name); diff -ur rsync-2.5.5/rsync.c rsync-2.5.5-umask/rsync.c --- rsync-2.5.5/rsync.c Thu Dec 20 16:33:13 2001 +++ rsync-2.5.5-umask/rsync.c Sun Mar 2 22:26:40 2003 @@ -150,6 +150,8 @@ int updated = 0; STRUCT_STAT st2; int change_uid, change_gid; + extern int am_daemon; + extern int module_id; if (dry_run) return 0; @@ -203,9 +205,18 @@ #ifdef HAVE_CHMOD if (!S_ISLNK(st->st_mode)) { - if (st->st_mode != file->mode) { + mode_t mode = file->mode; /* file->mode shouldn't be modified */ + + if (am_daemon) { + if(S_ISDIR(st->st_mode)) { + mode = ( mod...
2002 Feb 24
2
Write-only option
...gging) diff -urN rsync-2.5.2.orig/main.c rsync-2.5.2/main.c --- rsync-2.5.2.orig/main.c Fri Jan 25 11:07:41 2002 +++ rsync-2.5.2/main.c Sat Feb 23 13:49:38 2002 @@ -306,10 +306,19 @@ extern int relative_paths; extern int recurse; extern int remote_version; + extern int am_daemon; + extern int module_id; + extern int am_sender; if (verbose > 2) rprintf(FINFO,"server_sender starting pid=%d\n",(int)getpid()); + if (am_daemon && lp_write_only(module_id) && am_sender) { + rprintf(FERROR,"ERROR: module is write only\n"); + exit_cleanup(RERR_SYNTAX); + re...
2019 Oct 31
5
[PATCH] Replace mkproto.pl with mkproto.awk
...+/ { + local = /^FN_LOCAL/ + gsub(/^FN_(LOC|GLOB)AL_|,.*$/, "") + sub(/^BOOL\(/, "BOOL ") + sub(/^CHAR\(/, "char ") + sub(/^INTEGER\(/, "int ") + sub(/^STRING\(/, "char *") + protos = protos "\n" $0 (local ? "(int module_id);" : "(void);") + next +} + +/^static|^extern|;/||!/^[A-Za-z][A-Za-z0-9_]* / { next } + +/\(.*\)[ \t]*$/ { + protos = protos "\n" $0 ";" + next +} + +/\(/ { + inheader = 1 + protos = protos "\n" $0 +} + +END { + if (old_protos != protos...
2003 Jun 07
1
patch to rsync to add options for pre- and post-transfer commands
...wait_process(cmd, &status); + if ( (verbose > 1) || (status != 0) ) { + rprintf(FINFO,"%s script exited with %d status\n", + name, status); + } + } + + return(status); + } + + + static int run_prescript(const struct file_list *flist) + { + extern int module_id; + const char *prescript = lp_prescript(module_id); + + if ( (prescript == NULL) || (*prescript == '\0') ) return(0); + if (verbose > 1) { + rprintf(FINFO,"running pre-transfer script: %s\n", prescript); + } + + return(run_xfer_script(prescript, flist, "pre-trans...
2006 Sep 18
1
code 23 error.
...********************** static void do_server_sender(int f_in, int f_out, int argc, char *argv[]) { struct file_list *flist; char *dir = argv[0]; if (verbose > 2) { rprintf(FINFO, "server_sender starting pid=%ld\n", (long)getpid()); } if (am_daemon && lp_write_only(module_id)) { rprintf(FERROR, "ERROR: module is write only\n"); exit_cleanup(RERR_SYNTAX); return; } if (am_daemon && lp_read_only(module_id) && remove_sent_files) { rprintf(FERROR, "ERROR: --remove-sent-files cannot be used with a read-only module\n"); e...
2005 Jul 26
1
[patch] paranoid checksum checking
...an be read back and has the same MD4 sum as the file on at the originating location. Regards, Nick. -------------- next part -------------- *** rsync-2.6.6pre1/receiver.c 2005-04-14 02:42:13.000000000 +0100 --- rsync-new/receiver.c 2005-07-26 18:06:56.000000000 +0100 *************** extern int module_id; *** 46,51 **** --- 46,52 ---- extern int ignore_errors; extern int orig_umask; extern int keep_partial; + extern int always_checksum; extern int checksum_seed; extern int inplace; extern int delay_updates; *************** int recv_files(int f_in, struct file_lis *** 649,654 **** --- 65...
2006 Apr 26
2
--link-dest and file/dir transfer to remote rsync daemon
Hi NG, I want to do incremental backups to a remote server running rsyncd (because daemonless transfer via ssh often hangs!). In contrast to transfer via ssh (without remote rsyncd) this doesn't seem possible, or do I miss something? Imagine I want to incrementally backup `mydir' to the backup space `backup' on e remote server `alpha' running an rsync daemon. rsyncd on
2004 Feb 12
1
[PATCH] write only
...-------------------------------- --- rsync-2.6.0/main.c.orig Thu Feb 12 11:47:38 2004 +++ rsync-2.6.0/main.c Thu Feb 12 11:48:16 2004 @@ -347,12 +347,19 @@ static void do_server_sender(int f_in, i int i; struct file_list *flist; char *dir = argv[0]; + extern int module_id; extern int relative_paths; extern int recurse; if (verbose > 2) rprintf(FINFO,"server_sender starting pid=%d\n",(int)getpid()); + if (am_daemon && lp_write_only(module_id) && !am_sender) { + rprintf(FERR...
2017 Jun 09
1
NVPTX Back-end: relocatable device code support for dynamic parallelism
..._c_file_name "/tmp/tmpxft_00007040_00000000-4_cuda_id_test.cudafe1.c" --stub_file_name "/tmp/tmpxft_00007040_00000000-4_cuda_id_test.cudafe1.stub.c" --gen_device_file_name "/tmp/tmpxft_00007040_00000000-4_cuda_id_test.cudafe1.gpu" --nv_arch "compute_35" --gen_module_id_file --module_id_file_name "/tmp/tmpxft_00007040_00000000-3_cuda_id_test.module_id" --include_file_name "tmpxft_00007040_00000000-2_cuda_id_test.fatbin.c" "/tmp/tmpxft_00007040_00000000-9_cuda_id_test.cpp1.ii" #$ gcc -std=c++11 -E -x c++ -D__CUDACC__ -D__NVCC__ -D__CU...
2003 Jul 24
0
(no subject)
...->count; n++ ) { + send_file_entry(flist->files[n], f, 0); + } + send_file_entry(NULL, f, 0); + if (f != -1 && remote_version >= 15) { + send_uid_list(f); + } + if (f != -1 && remote_version >= 17 && !read_batch) { /* dw-added readbatch */ + extern int module_id; + write_int(f, lp_ignore_errors(module_id) ? 0 : io_error); + } + } struct file_list *recv_file_list(int f) { diff -E -B -c -r rsync-2.5.6/main.c rsync-2.5.6-remotebatch/main.c *** rsync-2.5.6/main.c Tue Jan 28 05:05:53 2003 --- rsync-2.5.6-remotebatch/main.c Wed Jul 23 15:55:18 2003 ***...
2016 Apr 01
3
Asterisk 13.8.0 alembic database update fails.
...script.run_env() File "/usr/lib/python2.7/dist-packages/alembic/script.py", line 203, in run_env util.load_python_file(self.dir, 'env.py') File "/usr/lib/python2.7/dist-packages/alembic/util.py", line 212, in load_python_file module = load_module_py(module_id, path) File "/usr/lib/python2.7/dist-packages/alembic/compat.py", line 58, in load_module_py mod = imp.load_source(module_id, path, fp) File "config/env.py", line 74, in <module> run_migrations_online() File "config/env.py", line 67, in run_mi...
2001 Aug 06
1
merge rsync+ into rsync (was Re: rsync-2.4.7 NEWS file)
> Just curious: what about the rsync+ patch? Thanks for the reminder. I've just committed Jos's rsync+ patch onto the "branch_mbp_rsyncplus_merge" branch. If it works OK and nobody screams I will move it across onto the main tree tomorrow or Wednesday. I see the patch doesn't add documentation about the new options to the man page, so we should fix that in the future.
2004 Jan 26
1
patch for linux capabilities
...*/ +#ifdef HAVE_LINUX_CAPS +#ifdef _POSIX_SOURCE +#undef _POSIX_SOURCE +#include <sys/prctl.h> +#include <sys/capability.h> +#define _POSIX_SOURCE +#else +#include <sys/prctl.h> +#include <sys/capability.h> +#endif +#endif + #include "rsync.h" extern int module_id; @@ -217,6 +229,10 @@ int start_glob=0; int ret; char *request=NULL; +#ifdef HAVE_LINUX_CAPS + cap_t cp; + cap_value_t newcaps[2] = { CAP_SYS_CHROOT, CAP_DAC_READ_SEARCH }; +#endif extern int am_sender; extern int am_server; extern int am_daemon; @@ -373,12 +389,46 @@ } #endif +#i...
2015 Sep 24
2
problems with PJSIP install on UBUNTU 14.04
On 15-09-24 04:42 PM, Ryan, Travis wrote: > Did something change DB-wise with PJSIP and realtime between 13.3.2 > and 13.5.0? I'm getting an unknown column error and unsure where I > need that column and the type it needs to be. Yes, the schema can change between versions. Following the instructions on
2018 May 11
2
[RFC] (Thin)LTO with Linker Scripts
...importing (ThinLTO). The goal is for every GlobalObject to have two additional attributes by the time optimizations are run:   - "linker_output_section": This is used for limiting/enabling optimizations     based on knowledge of the eventual section placement of a symbol.   - "module_id": This keeps track of the file origin of each symbol and will be     used during CodeGen to 'tag' symbols with their origin so the linker can     (re-)match the correct linker script rules after LTO. (3.2) To reduce 'futile' importing in ThinLTO, output section informatio...
2004 Jan 27
1
Differentiating debug messages from both sides
...atic int start_client(int argc, char * argc--; } } else { + who_am_i = "sender"; am_sender = 1; local_server = 1; shell_path = argv[argc-1]; --- options.c 23 Jan 2004 09:32:50 -0000 1.127 +++ options.c 27 Jan 2004 08:00:54 -0000 @@ -66,6 +66,7 @@ int read_only = 0; int module_id = -1; int am_server = 0; int am_sender = 0; +char *who_am_i = "receiver"; char *files_from = NULL; int filesfrom_fd = -1; char *remote_filesfrom_file = NULL; @@ -554,6 +555,7 @@ int parse_arguments(int *argc, const cha usage(FERROR); exit_cleanup(RERR_SYNTAX); } + who...
2004 Jan 19
1
File that "vanish"es between readdir and stat is not IO error
Using rsync 2.6.0 with --verbose and doing a pull. >?receiving file list ... readlink "{FILENAME}" failed: >?No such file or directory >?done >?IO error encountered - skipping file deletion The file was a temporary file that was being deleted just as the rsync was run. So while the file list was being built, it was there when the directory was read but had vanished by the
2007 Feb 15
2
Client can trick daemon into running server code with am_server == 0
Dear rsync people (particularly Wayne), I noticed that an rsync daemon counts on the client sending a --server option so that am_server gets set to 1. If the client doesn't supply this option, am_server remains 0 but the daemon runs start_server anyway. This is potentially dangerous and might lead to a security hole, although I haven't found one yet. I suggest that the daemon either
2010 Mar 11
0
Migration Help
Hi, I need to create a migration that will populate data in my table. Table is like Column table (id, column_name, fa_module_id) column_name stores column name of the tables existing in our database for example I have a table Customer(id, first_name, last_name, age) then each row of Columns table can be used to store a single column information for the customer module one row can be (id = 1, column_name = "first_na...
2020 Feb 06
0
[PATCH] Add support for zstd compression
...rt extended attributes) diff --git a/options.c b/options.c index e5b0cb68280ed..07e3f1e5d0ac1 100644 --- a/options.c +++ b/options.c @@ -23,6 +23,9 @@ #include "itypes.h" #include <popt.h> #include <zlib.h> +#ifdef HAVE_LIBZSTD +#include <zstd.h> +#endif extern int module_id; extern int local_server; @@ -77,6 +80,7 @@ int protocol_version = PROTOCOL_VERSION; int sparse_files = 0; int preallocate_files = 0; int do_compression = 0; +int do_compression_zstd = 0; int def_compress_level = NOT_SPECIFIED; int am_root = 0; /* 0 = normal, 1 = root, 2 = --super, -1 = --fak...