Displaying 20 results from an estimated 200 matches similar to: "[Code study] lp_motd_file defination? Help"
2003 Apr 15
0
Patch for stderr logging
Rsync team, and interested parties:
i was attempting to get rsync to launch from tcpserver[0] (an inetd
replacement from djb) and log to stderr for logging via multilog[1]
(syslog replacement by djb) and i was unable to get it to log to stdout/
stderr at all.
[0] http://cr.yp.to/ucspi-tcp/tcpserver.html
[1] http://cr.yp.to/daemontools/multilog.html
i have attached a patch that allows
2000 Jan 28
1
PATCH: 'source environment' param and % token subs for 'netbios name'
Attached please find unified diffs against Samba 2.0.6. I'm hoping that
others will find it useful and that it may even find its way into Samba
2.0.7
This patch does two things:
- Modifies the handling of the 'netbios name' parameter so that
standard_sub_basic() is run on its value when the 'netbios name'
parameter is processed.
This has to be done this way because
2003 Feb 12
2
rsync & ldap authentication
Hi,
I'm trying to get rsync 2.5.6 to authenticate users via openldap-2.0.23. I was looking through the mailing list archives and found a patch for rsync-2.4.6 that does this for me. I was just wondering if this is still valid, or if there has been a new patch or new implementation that has superceded this patch. Any help would be great. The message I am referring to is as follows:
2005 Jul 29
2
segment fault with 2.6.6 or CVS
Hi,
I've rebuilt rsync (which was running just fine for quite some time)
and it works if used via ssh or if the daemon is started via ssh.
But it crashed in daemon mode (started standalone or by xinetd)
Here is the gdb log
gdb ...
set follow-fork-mode child
run --daemon --no-detach
Program received signal SIGSEGV, Segmentation fault.
[Switching to process 32521]
0x08056577 in glob_expand
2009 Apr 27
1
[Code study]should we remove if (motd && *motd) section?
Dear List,
I'm confused when we will run into "if (motd && *motd)"?
As I have found that Globals is set 0 during initialization, and I
didn't find anywhere else assign the value.
If so, should we remove this section?
Or there might be some where I missed? Please correct me, if I'm wrong.
Thanks in advance.
clientserver.c #line 147~160
> if (!am_client) {
2002 Feb 24
2
Write-only option
Hi!
I am doing backups from a number of machines to an rsync server. For some
time I was trying to come up with a solution, which would prevent users
from peeking at each other's files, which are backed up. Finally, I've
hacked rsync, introducing a new option "write only" for rsyncd.conf. When
set to true, this option forbids the transfers from server to the client,
thus solving
2020 Jan 18
1
How to get an object name from C?
(earlier I sent it as html by mistake).
Hi,
How can I get from C an object name used as a function argument? I
have sample code in C that gives me access to the name of the function
being called:
SEXP xname(SEXP x)
{
const char *fun_name = CHAR(PRINTNAME(CAR(x)));
x = CDR(x);
const char *arg_name = isNull(TAG(x)) ? "" : CHAR(PRINTNAME(TAG(x)));
2002 Mar 15
1
disabling offline caching from samba
I'm preparing to roll out a bunch of win XP clients and and am running
down all the quirks
that come up in the application log on my test box.
1) AutoEnrollement fails - samba is not an active directory so this
makes sense
it must be disabled by editing the group policy
with gpedit.msc
computer configuration->windows settings -> security settings -> public
key policies ->
2002 Jun 18
2
rsyncd + scripting
Hey all,
Like a lot of folks, I use rsync to pull content out to production web
servers. Tastes great, less filling.
Here's what I'd like to be able to do: Sometimes a web tree is not ready
to sync, for whatever reason. I have many modules available, so stopping
ryncd is not an option. I'd like to be able to tell rsync in daemon mode
"this particular module is not available at
2001 Dec 28
1
(patch) memory leak in loadparm.c
Hi, I spent a little bit of time trying to debug a segfault in rsync
2.5.0, and after discovering it was in loadparm.c, I noticed that the
bug had been worked around in the current CVS by removing a free()
statement.
That fix seems less than optimal; here's a patch which should fix the
memory leak.
-------------- next part --------------
--- loadparm.c.~1.40.~ Sun Dec 2 03:16:15 2001
+++
2003 May 03
0
Storing rsync secrets in LDAP
Hi, a few months ago I posted a message about using LDAP to store rsync secrets in LDAP. I received a response about patching the rsync source code with a patch file. I am now finally getting around to doing this, and when I tried to use the patch command 'patch --verbose ./rsync-2.5.6/authenticate.c rsync-ldap.patch' , it gives me the following error:
Hmm... Looks like a unified diff
2011 Mar 18
1
[PATCH] s3: Add "spoolss backchannel" parameter
---
.../smbdotconf/printing/spoolssbackchannel.xml | 16 ++++++++++++++++
source3/include/proto.h | 1 +
source3/param/loadparm.c | 12 ++++++++++++
source3/rpc_server/srv_spoolss_nt.c | 6 ++++++
4 files changed, 35 insertions(+), 0 deletions(-)
create mode 100644
2002 Jul 14
2
Precedence of usernames w/Winbind
I might be missing obvious here, but here goes:
Samba 2.2.4.
Using "winbind use default domain = <DOMAIN>" option usernames map
correctly, however, when logging on from an W2K machine I still get
the autogenerated UID instead of my NIS (Or /etc/passwd) UID.
Both nis and files precede winbind in /etc/nsswitch.conf
Commenting out winbind from /etc/nsswitch.conf works, which
2009 Jan 14
1
Improving loadparm design to fix bug in configuration reloading
While I was working on the avoid-reverse-lookup patches, I found a flaw
in the daemon's behavior of reloading the configuration on each
connection. If I remove a module parameter (in my case, "hosts allow")
from the global section, the removal does not take effect. This is
because loadparm.c does not reset sDefaults to the application defaults
before reloading the configuration.
2004 Sep 28
1
[Patch] rsync-2.6.2: Allow 'port = N' in rsyncd.conf
Hi,
If anyone is interested, the included patch to rsync-2.6.2 allows you to
specify the port number for an rsync server as a global option in
rsyncd.conf with 'port = <N>' (where <N> is your favorite port number).
Note that this parameter only takes effect when the server is started, not
when clients connect. Also, specifying the port in rsyncd.conf takes
precedence
1999 Jul 02
1
preexec: return code not used? (PR#18576)
T.D.Lee@durham.ac.uk wrote:
>
>
> But we'd like to go one step further and have the return code from preexec
> be used to continue or abort the connection being established. The script
> above would be modified to generate this return code.
>
> Looking through the source code (smbd/service.c), it doesn't seem to check
> the return code (calling smbrun to do the
2004 Jun 01
1
what does lp_log_file mean??
I have some problems when I read the code of the rsync.
There are many reference such as lp_log_file, lp_uid, lp_include_from,
etc. in the file clientserver.c and log.c . Who can tell what do they
mean? Are they functions? Where I can find the particular information
about them?
Thanks!
_________________________________________________________________
Ãâ·ÑÏÂÔØ MSN Explorer:
2001 Dec 03
2
Bug in rsyncd 2.5.0 while handling config file string values
I compiled and tried rsync 2.5.0 but could not get the server
running. loadparm.c:string_set() now calls free() which it did not do
in 2.4.6 and this free() tries to free memory that was not allocated
with malloc.
Here is a gdb run (done after adding return before fork() in
become_daemon) which shows where it crashes and what my minimal config
file for demonstrating the bug was. The config file
2016 Mar 23
7
[PATCH v4 0/6] tests/qemu: Add program for tracing and analyzing boot times.
v4:
- Lots more analysis of the /init script and other parts.
- Display a list of the longest to shortest activities.
- Rebase on top of current head.
Rich.
2009 Aug 03
9
[PATCH 0/9] Quota support for ocfs2-tools (version 3)
Hi,
below comes a new version of the series of patches implementing quota support
for ocfs2-tools. I've fixed the calls of ocfs2_malloc_blocks() which were given
number of bytes instead of number of blocks. Besides that the series should be
the same.
Honza