search for: slprintf

Displaying 20 results from an estimated 34 matches for "slprintf".

1998 Jun 29
0
1.9.18p8 compile problems
I get the following compile error when compiling p8 with p4 Makefile: Linking smbd util.o: In function `check_log_size': util.o(.text+0x2cc): undefined reference to `slprintf' util.o: In function `name_mangle': util.o(.text+0x94f): undefined reference to `slprintf' util.o: In function `standard_sub_basic': util.o(.text+0x4c9e): undefined reference to `slprintf' util.o: In function `uidtoname': util.o(.text+0x4f32): undefined reference to `slprint...
1998 May 11
0
Tried Compiling 1.9.18p6 yet
...wrote: > > Having a couple problems with Samba: > > First Samba 1.9.18p6 doesn't compile under SCO Unix 3.2v4.2: > > Linking smbd > undefined first referenced > symbol in file > getpagesize slprintf.o > mprotect slprintf.o > memalign slprintf.o > ld fatal: Symbol referencing errors. No output written to smbd > *** Error code 13 > > Stop. > # Yes, unfortunately SCO 3.2v4.2 doesn't have these functions. I created...
1998 May 12
0
Compilation problem on OSF/1
...AGS1 = -O -std1 -w >LIBS1 = and ># This is for OSF1 (Alpha) ># contributed by errath@balu.kfunigraz.ac.at ># NOTE: You may need -warning_unresolved if you get unresolved symbols > >FLAGSM = -DOSF1 -DFAST_SHARE_MODES >LIBSM = Everything seems to compile fine until it gets to slprintf when the following occurs... >% make >Using CFLAGS = -O -std1 -w -DSMBLOGFILE="/usr/local/samba/var/log.smb" -DNMBLOGF >ILE="/usr/local/samba/var/log.nmb" -DCONFIGFILE="/usr/local/samba/lib/smb.conf" >-DLMHOSTSFILE="/usr/local/samba/lib/lmhosts"...
2001 Apr 05
0
smbclient, find, and NetBSD
...box. When I leave recursion off and do an 'mput', the find fails because NetBSD's find does not have the '-maxdepth' option. The problem is in samba/source/client/client.c at line 1168. Here is the code that causes the problem with a temporary fix. > if (recurse) > slprintf(cmd,sizeof(pstring)-1, > "find . -name \"%s\" -print > %s",p,tmpname); > else > slprintf(cmd,sizeof(pstring)-1, > "ls -1 %s > %s",p,tmpname); > // slprintf(cmd,sizeof(pstring)-1, > // "find . -maxdepth 1 -name \"%s\&q...
2001 Apr 05
0
smbclient, find, and NetBSD (fwd)
...box. When I leave recursion off and do an 'mput', the find fails because NetBSD's find does not have the '-maxdepth' option. The problem is in samba/source/client/client.c at line 1168. Here is the code that causes the problem with a temporary fix. > if (recurse) > slprintf(cmd,sizeof(pstring)-1, > "find . -name \"%s\" -print > %s",p,tmpname); > else > slprintf(cmd,sizeof(pstring)-1, > "ls -1 %s > %s",p,tmpname); > // slprintf(cmd,sizeof(pstring)-1, > // "find . -maxdepth 1 -name \"%s\&q...
1999 Apr 25
0
swat: bug located
...void *vp; struct smb_passwd *smb_pwent; uchar new_p16[16]; uchar new_nt_p16[16]; *err_str = '\0'; *msg_str = '\0'; pwd = getpwnam(user_name); /* * Check for a machine account. */ if(trust_account && !pwd) { slprintf(err_str, err_str_len - 1, "User %s does not \ exist in system password file (usually /etc/passwd). Cannot add machine \ account without a valid system user.\n", user_name); return False; } ... *SNIP* ... Continue on line 111 /* Get the smb passwd entry for this user */ s...
1999 Apr 25
0
swat core dump and debug information
...wd; void *vp; struct smb_passwd *smb_pwent; uchar new_p16[16]; uchar new_nt_p16[16]; *err_str = '\0'; *msg_str = '\0'; pwd = getpwnam(user_name); /* * Check for a machine account. */ if(trust_account && !pwd) { slprintf(err_str, err_str_len - 1, "User %s does not \ exist in system password file (usually /etc/passwd). Cannot add machine \ account without a valid system user.\n", user_name); return False; } ... *SNIP* ... Continue on line 111 /* Get the smb passwd entry for this user */ s...
2002 Jul 17
0
user password expiration patch (Samba 2.2.4/2.2.5 PDC with LDAP)
...AL_INTEGER(lp_map_to_guest, &Globals.map_to_guest) diff -ur --new-file samba.org/source/passdb/pdb_ldap.c samba-2.2.4/source/passdb/pdb_ldap.c --- samba.org/source/passdb/pdb_ldap.c Fri May 3 03:03:26 2002 +++ samba-2.2.4/source/passdb/pdb_ldap.c Fri Jun 7 14:39:10 2002 @@ -608,7 +608,7 @@ slprintf (temp, sizeof (temp) - 1, "%li", pdb_get_pass_can_change_time(sampass)); make_a_mod(mods, ldap_state, "pwdCanChange", temp); - slprintf (temp, sizeof (temp) - 1, "%li", pdb_get_pass_must_change_time(sampass)); + slprintf (temp, sizeof (temp) - 1, "%li",...
1998 May 11
1
Problems Compiling 1.9.18p6 with SCO 3.2v4.2
Having a couple problems with Samba: First Samba 1.9.18p6 doesn't compile under SCO Unix 3.2v4.2 using native compiler: Linking smbd undefined first referenced symbol in file getpagesize slprintf.o mprotect slprintf.o memalign slprintf.o ld fatal: Symbol referencing errors. No output written to smbd *** Error code 13 Stop. # Also I keep getting errors when linking that it can't find .o files in the subdirectories, when compiling th...
2000 Mar 17
0
MAR 14 CVS, smbclient mput problem on AIX 4.2
...on March 14, 2000. The problem will manifest itself on systems that don't support -maxdepth on the find command. (AIX being one of them ). I compared source/client.c between 2.0.6 and the cvs. The problem is in: static void cmd_mput(void) When recurse=false Version 2.0.6 ------------- slprintf(cmd,sizeof(pstring)-1, "/bin/ls %s > %s",p,tmpname); system(cmd); CVS as of March 14/2000 ----------------------- slprintf(cmd,sizeof(pstring)-1, "find . -maxdepth 1 -name \"%s\" -print > %s",p,tmpname); AIX 4.2 does not support the -maxdepth param...
2001 Nov 13
2
direct write patch
...@ safe_symlinks=1; break; + case OPT_DIRECT_WRITE: + direct_write = 1; + break; + case 'h': usage(FINFO); exit_cleanup(0); @@ -554,6 +561,8 @@ keep_partial = 1; break; + + case OPT_IGNORE_ERRORS: ignore_errors = 1; break; @@ -691,6 +700,9 @@ slprintf(mdelete,sizeof(mdelete),"--max-delete=%d",max_delete); args[ac++] = mdelete; } + + if (direct_write) + args[ac++] = "--direct-write"; if (io_timeout) { slprintf(iotime,sizeof(iotime),"--timeout=%d",io_timeout); diff -ru rsync-2.4.6/receiver.c rsync-2.4...
2003 Jan 16
1
RE: How do I get the @#$$% job name to show instead of smbprn.yad a.yada?
> -----Original Message----- > From: Joel Hammer [mailto:Joel@HammersHome.com] > Sent: Wednesday, January 15, 2003 6:57 PM > To: Van Sickler, Jim; samba@lists.samba.org > Subject: Re: [Samba] How do I get the @#$$% job name to show > instead of > smbprn.yada.ya da? > > > If the file name is right in /tmp/J, then it looks like samba > is working ok. > > I
2002 May 29
1
BUG: when using 'addprinter command'
...named [%s] when one already existed!\n", printer->info_2->sharename)); free_a_printer(&printer, 2); return WERR_PRINTER_ALREADY_EXISTS; } if (*lp_addprinter_cmd() ) if ( !add_printer_hook(printer) ) { free_a_printer(&printer,2); return WERR_ACCESS_DENIED; } slprintf(name, sizeof(name)-1, "\\\\%s\\%s", get_called_name(), printer->info_2->sharename); if ((snum = print_queue_snum(printer->info_2->sharename)) == -1) { free_a_printer(&printer,2); return WERR_ACCESS_DENIED; } 1 the function print_queue_snum check is a p...
2003 Sep 29
0
wins hook functionality broken in Samba 3.0.0
...- char *p; + char *p, *namestr; int i; if (!cmd || !*cmd) return; @@ -119,11 +119,17 @@ } } + /* Use the name without the nametype (and scope) appended */ + + namestr = nmb_namestr(&namerec->name); + if ((p = strchr(namestr, '<'))) + *p = 0; + p = command; p += slprintf(p, sizeof(command)-1, "%s %s %s %02x %d", cmd, operation, - nmb_namestr(&namerec->name), + namestr, namerec->name.name_type, ttl);
2003 Aug 08
0
smbpasswd -m, changing account to a machine account.
...pdb_set_acct_ctrl(sam_pass,(pdb_get_acct_ctrl(sam_pass)|ACB_WSTRUST)&(~A CB_NORMAL)); + } else { + pdb_set_acct_ctrl(sam_pass,(pdb_get_acct_ctrl(sam_pass)|ACB_NORMAL)&(~AC B_WSTRUST)); + } if(!pdb_update_sam_account(sam_pass, True)) { slprintf(err_str, err_str_len-1, "Failed to modify entry for user %s.\n", user_name); pdb_free_sam(sam_pass); - ---------------------------------------------------------------------- Zuse Institute Berlin, Takustrasse 7 D-14195 Berlin-Dahlem, Germany phone: +49 (30) 841 85-337...
2004 May 26
2
duplicate domains in browse list
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, i recently upgraded some of my servers from 3.0.2a to 3.0.4 after the upgrade my browselist shows duplicate entries for the domains. one domains is managed by a samba PDC(providing WINS too) and two samba BDC's. the other domains are managed by one samba PDC. 'smbclient -N -L <WINS_SERVER>' shows: - --- Workgroup
2000 Apr 24
1
Samba 2.0.6 Compilation Warning under Solaris 7
...and what is done in the Solaris "dirent.h" include file. Since I don't know which has the error, I don't know what to do to fix the problem. Compiler warning during make: -------------------------------------------------------------------------------- . . . Compiling lib/slprintf.c Compiling lib/system.c lib/system.c: In function `sys_readdir': lib/system.c:350: warning: return from incompatible pointer type Compiling lib/doscalls.c . . . -------------------------------------------------------------------------------- The code in system.c: -----------------------...
2001 Apr 07
1
samba on NetBSD - some patches
...E_IRIX_SPECIFIC_CAPABILITIES #undef HAVE_INT16_FROM_RPC_RPC_H $NetBSD: patch-ad,v 1.3 2001/04/07 10:00:42 hubertf Exp $ --- client/client.c.orig Wed May 10 16:28:49 2000 +++ client/client.c @@ -1165,7 +1165,7 @@ "find . -name \"%s\" -print > %s",p,tmpname); else slprintf(cmd,sizeof(pstring)-1, - "find . -maxdepth 1 -name \"%s\" -print > %s",p,tmpname); + "ls -1 %s > %s",p,tmpname); system(cmd); f = sys_fopen(tmpname,"r"); @@ -1599,22 +1599,19 @@ return True; } -#if defined(HAVE_LIBREADLINE) +#if defin...
2001 Sep 30
0
Exclude sets generated with -C
...G","cvslog.*", @@ -359,12 +410,13 @@ int i; for (i=0; cvs_ignore_list[i]; i++) - add_exclude(cvs_ignore_list[i], 0); + add_exclude_list(cvs_ignore_list[i], &global_cvs_exclude_list, 0); if ((p=getenv("HOME")) && strlen(p) < (MAXPATHLEN-12)) { slprintf(fname,sizeof(fname), "%s/.cvsignore",p); - add_exclude_file(fname,0,0); + global_cvs_exclude_list = + make_exclude_list(fname, global_cvs_exclude_list, 0, 0); } - add_exclude_line(getenv("CVSIGNORE")); + add_exclude_line_to_list(getenv("CVSIGNORE"), &global...
2002 Dec 19
0
Failed to delete entry for share
...ission settings or simply deleting the default Everyone setting, saving it, and then recreating the exact same setting. The actual error message come from the following section in the source: rpc_server/srv_srvsvc_nt.c static BOOL delete_share_security(int snum) { TDB_DATA kbuf; fstring key; slprintf(key, sizeof(key)-1, "SECDESC/%s", lp_servicename(snum)); kbuf.dptr = key; kbuf.dsize = strlen(key)+1; if (tdb_delete(share_tdb, kbuf) != 0) { DEBUG(0,("delete_share_security: Failed to delete entry for share %s\n", lp_servicename(snum) )); return False; } return T...