Displaying 8 results from an estimated 8 matches for "lp_name".
Did you mean:
lc_name
2005 Jul 29
2
segment fault with 2.6.6 or CVS
...nd (base1=0x5 <Address 0x5 out of bounds>,
argv_ptr=0xbfa4a20c, argc_ptr=0xbfa4a210, maxargs_ptr=0xbfa4a214)
at util.c:548
#1 0x080710f6 in start_daemon (f_in=7, f_out=7) at clientserver.c:451
line 451: glob_expand(name, &argv, &argc, &maxargs);
line 232: char *name = lp_name(i);
within gdb:
print lp_name
$1 = {char *(int)} 0x806f0c0 <lp_name>
(gdb) print lp_name@5
$2 = {{char *(int)} 0, {char *(int)} 0, {char *(int)} 0, {char *(int)} 0, {
char *(int)} 0}
I don't understand the code since I see 2 (global) definitions of
lp_name
first in t_stu...
2008 May 21
0
Rsync feature request
...}
@@ -262,23 +267,29 @@
}
memset(secret, 0, sizeof secret);
- if (!get_secret(module, line, secret, sizeof secret - 1)) {
- memset(secret, 0, sizeof secret);
- rprintf(FLOG, "auth failed on module %s from %s (%s): "
- "missing secret for user \"%s\"\n",
- lp_name(module), host, addr, line);
- return NULL;
- }
-
- generate_hash(secret, challenge, pass2);
- memset(secret, 0, sizeof secret);
- if (strcmp(pass, pass2) != 0) {
- rprintf(FLOG, "auth failed on module %s from %s (%s): "
- "password mismatch\n",
- lp_name(module), host, ad...
2014 Oct 02
2
CUPS Enable printer from command line
Hi all:
I am investigating about Common Unix Printing System (CUPS).but, I have one
doubt, when I execute the command "lpc status" , the output it's :
for example:
Printer-one:
printer is on device 'lpd' speed -1
queuing is enabled
printing is disabled
10 entries
daemon present
so the status the printer it's "DISABLED",
I changed in the file
2007 Aug 24
0
rsync patch to add Apple keychain support
...void **passwordData, SecKeychainItemRef *itemRef);
OSStatus SecKeychainItemFreeContent(SecKeychainAttributeList *attrList,
void *data);
static int get_secret_from_keychain(int module, char *user, char
*secret, unsigned secretmaxlen)
{
char accountname[100] = "";
char* modulename = lp_name(module);
strcat(accountname, modulename);
strcat(accountname, "-");
strcat(accountname, user);
OSStatus status = noErr;
UInt32 passwordLength = 0;
void* passwordData = nil; // will be allocated and filled in by
SecKeychainFindGenericPassword
SecKeychainItemRef* itemRef...
2004 Sep 28
1
[Patch] rsync-2.6.2: Allow 'port = N' in rsyncd.conf
...,
@@ -350,6 +352,7 @@
FN_GLOBAL_STRING(lp_socket_options, &Globals.socket_options)
FN_GLOBAL_INTEGER(lp_syslog_facility, &Globals.syslog_facility)
FN_GLOBAL_INTEGER(lp_max_verbosity, &Globals.max_verbosity)
+FN_GLOBAL_INTEGER(lp_rsync_port, &Globals.rsync_port)
FN_LOCAL_STRING(lp_name, name)
FN_LOCAL_STRING(lp_comment, comment)
diff --unified -r rsync-2.6.2/main.c rsync-dmn/main.c
--- rsync-2.6.2/main.c Mon Feb 9 22:54:47 2004
+++ rsync-dmn/main.c Tue Sep 28 12:58:28 2004
@@ -57,6 +57,7 @@
extern char *rsync_path;
extern char *shell_cmd;
extern struct file_list *batch_flist...
2001 Nov 20
2
rsync server over SSH [includes code patches]
...return 0;
+ }
! static int rsync_module(int f_in, int f_out, int i)
{
int argc=0;
char *argv[MAX_ARGS];
***************
*** 125,170 ****
uid_t uid = (uid_t)-2;
gid_t gid = (gid_t)-2;
char *p;
! char *addr = client_addr(fd);
! char *host = client_name(fd);
char *name = lp_name(i);
int use_chroot = lp_use_chroot(i);
int start_glob=0;
int ret;
char *request=NULL;
extern int am_sender;
extern int remote_version;
extern int am_root;
if (!allow_access(addr, host, lp_hosts_allow(i), lp_hosts_deny(i))) {
rprintf(FERROR,"rsync denied on module...
2005 Jan 31
1
[patch] add "--ignore" option
...+ enum matchtype check_filter(UNUSED(struct filter_list_struct *listp),
UNUSED(char *name),
UNUSED(int name_is_dir))
{
/* This function doesn't really get called in this test context, so
- * just return 0. */
- return 0;
+ * just return M_NOMATCH. */
+ return M_NOMATCH;
}
char *lp_name(UNUSED(int mod))
diff -ur ../rsync-HEAD-20050125-1221GMT.orig/util.c ./util.c
--- ../rsync-HEAD-20050125-1221GMT.orig/util.c Tue Jan 25 12:21:14 2005
+++ ./util.c Thu Jan 27 13:51:19 2005
@@ -486,7 +486,7 @@
if (server_filter_list.head) {
for (s = arg; (s = strchr(s, '/')) != NULL; ) {...
2007 Sep 22
0
rsync build on IA64 using icc
...FLOG, errno, "chdir %s failed\n",
^
clientserver.c(665): remark #1599: declaration hides parameter "i" (declared at line 271)
int i;
^
clientserver.c(718): remark #981: operands are evaluated in unspecified order
io_printf(fd, "%-15s\t%s\n", lp_name(i), lp_comment(i));
^
clientserver.c(718): remark #981: operands are evaluated in unspecified order
io_printf(fd, "%-15s\t%s\n", lp_name(i), lp_comment(i));
^
/opt/intel/compilo_9/l_cc_c_9.1.042/bin/icc -c99 -I. -I. -g -O2 -DHAVE_C...