search for: pstrcpy

Displaying 20 results from an estimated 73 matches for "pstrcpy".

Did you mean: strcpy
1998 Jul 22
0
BUG-with-fix: smbclient ignores WORKGROUP= in smb.conf
...-c -r1.63.2.11 client.c *** client.c 1998/05/13 02:32:40 1.63.2.11 --- client.c 1998/07/22 21:20:56 *************** *** 3549,3554 **** --- 3549,3555 ---- pstring new_name_resolve_order; char *p; int save_debuglevel = -1; + pstring tempworkgroup = ""; #ifdef KANJI pstrcpy(term_code, KANJI); *************** *** 3703,3709 **** break; case 'W': ! pstrcpy(workgroup,optarg); break; case 'E': dbf = stderr; --- 3704,3710 ---- break; case 'W': ! pstrcpy(tempworkgroup,optarg); break; cas...
1998 Nov 24
0
source/client/client.c : redundant calls to getenv()
...e same argument. The glibc manual says the memory zone returned by getenv() may be clobbered on non-glibc systems by other calls to getenv(), but there are no such calls in-between. I suggest to modify this code as : line 1924 : char *p, *user; line 1968 : if ((user=getenv("USER")) { pstrcpy(username, user); /* modification to support userid%passwd syntax in the USER var 25.Aug.97, jdblair@uab.edu */ if ((p=strchr(username,'%'))) { *p = 0; pstrcpy(password,p+1); got_pass = True;...
2003 Mar 01
1
samba 2.2.8pre2 changelog
Hi, I read the changelog, and couldn't help noticing this: Changes since 2.2.8pre1 ----------------------- 8) Always use safe_strcpy not pstrcpy for malloc()'d strings 25) Merge from HEAD. Use pstrcpy not safe_strcpy. Did this change get reverted intentionally ? regards, Derkjan de Haan
2007 Feb 05
0
[SAMBA-SECURITY] CVE-2007-0452: Potential DoS against smbd in Samba 3.0.6 - 3.0.23d
...ext part -------------- diff -urN samba-3.0.23d/source/printing/nt_printing.c samba/source/printing/nt_printing.c --- samba-3.0.23d/source/printing/nt_printing.c 2006-07-10 11:27:50.000000000 -0500 +++ samba/source/printing/nt_printing.c 2007-01-30 15:00:45.000000000 -0600 @@ -4839,7 +4839,7 @@ pstrcpy( file, s ); driver_unix_convert(file, conn, NULL, &bad_path, &st); DEBUG(10,("deleting driverfile [%s]\n", s)); - unlink_internals(conn, 0, file, False); + unlink_internals(conn, 0, file, False, False); } } @@ -4848,7 +4848,7 @@ pstrcpy( file, s ); dri...
2007 Feb 05
0
[SAMBA-SECURITY] CVE-2007-0452: Potential DoS against smbd in Samba 3.0.6 - 3.0.23d
...ext part -------------- diff -urN samba-3.0.23d/source/printing/nt_printing.c samba/source/printing/nt_printing.c --- samba-3.0.23d/source/printing/nt_printing.c 2006-07-10 11:27:50.000000000 -0500 +++ samba/source/printing/nt_printing.c 2007-01-30 15:00:45.000000000 -0600 @@ -4839,7 +4839,7 @@ pstrcpy( file, s ); driver_unix_convert(file, conn, NULL, &bad_path, &st); DEBUG(10,("deleting driverfile [%s]\n", s)); - unlink_internals(conn, 0, file, False); + unlink_internals(conn, 0, file, False, False); } } @@ -4848,7 +4848,7 @@ pstrcpy( file, s ); dri...
2002 Mar 15
0
logon home with ldap under win98
...uid); + unbecome_root(); + + if ( logon_home_frompassdb == False ){ + DEBUG(3,(" MS: Could not find entry in sam. \n")); + } else { + DEBUG(3,(" MS: Home Directory is %s\n", sampass->home_dir)); + if ( strlen(sampass->home_dir) != 0 ) + pstrcpy(logon_home,sampass->home_dir); + else + logon_home_frompassdb = False; + pdb_free_sam(sampass); + } + + /* end of test area */ + /***********************************************/ + *rparam_len = 6; *rparam = REALLOC(*rparam,*rparam_len); ***********...
2003 Apr 13
1
disabling version number
Hi there, is there any possibility of disabling Samba's version number output (e.g. with smbclient) without having to manually edit it in the source code? I don't want anyone to see my Samba's version number... Thanks Florian
2000 Jan 30
0
More checks for param/loadparm.c
...string_set(ptr,pszParmValue); < add_char_string(pszParmValue); < return(True); --- > static BOOL handle_netbios_name(char *pszParmValue, char **parm_ptr) { > pstring netbios_name; > > if (validate_netbios_name(pszParmValue) == False) > return False; > > pstrcpy(netbios_name,pszParmValue); > #define NW 1 > #ifdef NW > /* run standard_sub_basic on netbios name... needed because > global_myname is not accessed through any lp_ macro. > Nicolas Williams <Nicolas.Williams@wdr.com> */ > standard_sub_basic(netbios_name)...
2007 Jun 06
3
string overflow in rpcclient add "printer" driver command
...a bla bla ... aaaaaaa.077,ccccccc.078"' My system is RHEL 5, Samba version is 3.0.23c-2.el5.2.0.2.x86_64. The same error I found in Fedora 6 Samba 3.0.24-5. I try with 3.0.25a, but I get same error too. The error, I think, is in source/rpcclient/rpcclient.c next_command function in pstrcpy() call. I tried to fix changing the line definition in source/include/pstring.h for: #define PSTRING_LEN 2048 /* was 1024 */ but I get compiler errors like: nmbd/nmbd_incomingdgrams.o: In function `process_get_backup_list_request': nmbd_incomingdgrams.c:(.text+0x7db): undefined refere...
2002 Feb 14
2
Samba 2.2.3a w/NISPLUS
hi i downloaded samba 2.2.3a and am trying to compile it with NISPLUS support, but the compile bombs in the same place on 2 systems (1 debian gnu/linux 3.0 and the other solaris 7/sparc): Compiling passdb/pdb_nisplus.c passdb/pdb_nisplus.c:346: macro `pstrcpy' used with too many (3) args make: *** [passdb/pdb_nisplus.o] Error 1 i am configuring with these options on debian: ./configure --prefix=/usr/local/samba --with-syslog --with-libsmbclient --with-winbind --with-nisplussam and with the above+ these additional options on solaris: --with-acl-sup...
2002 Jun 27
2
Samba 2.2.5 Recycle Bin file permissions
Using Samba 2.2.5 on FreeBSD 4.5. We have a file share used by several people working on common projects. The share is set up with force group = cad create mask = 0774 force create mode = 0774 directory mask = 0775 force directory mode = 0775 so that everyone can create/modify any file in the share. The new VFS recycle bin, however, sets the file
1998 Aug 20
0
macro subsitution inconsistancies
...using the same connection that was initially authorized. The debug log shows: sesssetupX:name=[] Looking at the sources, I tracked this down to reply.c:reply_sesssetup_and_X, which contains this code and comment: /* If no username is sent use the guest account */ if (!*user) { pstrcpy(user,lp_guestaccount(-1)); /* If no user and no password then set guest flag. */ if( *smb_apasswd == 0) guest = True; } This makes sense, considering that it then tries to read the file /etc/smb-confs/smb.conf.guest (my guest account = guest). I don't know if this shou...
2002 Jul 09
1
PATCH: Performance improvement for parameterised include path names
.... Could someone let me know when this patch makes it into a release so I know when to stop hacking our local copy. --- samba-2.2.3a/source/param/loadparm-2.2.3a.c Tue Jul 9 13:50:53 2002 +++ samba-2.2.3a/source/param/loadparm.c Tue Jul 9 13:52:40 2002 @@ -2454,10 +2454,10 @@ pstring fname; pstrcpy(fname, pszParmValue); - add_to_file_list(pszParmValue, fname); - standard_sub_basic(fname); + add_to_file_list(pszParmValue, fname); + string_set(ptr, fname); if (file_exist(fname, NULL)) -- ______ jonathan@cs.keele.ac.uk Jonathan Knight, /...
2008 Dec 30
3
Samba 3.2.5 and vscan-clamav.so
Hello Recently I migrated from samba 3.0.24 to samba 3.2.5 on Debian etch amd64. In old system I have working samba-vscan used with ClamAV 0.91. Now I have ClamAV 0.94.2. I compiled vscan-clamav successfully, but when I try to connect to the share, it fails and I get some strange messages in the samba logs: "Error trying to resolve symbol 'init_samba_module' in
2000 Jan 05
1
Signal 11 in attempt_netbios_session_request
> I have just upgraded to Samba 2.0.6 and can no longer connect to Samba > shares on my FreeBSD 3.4-RELEASE machine. When I attempt to connect, the > smb.log contains the following information: > > [2000/01/04 17:54:42, 3] libsmb/namequery.c:resolve_lmhosts(566) > resolve_lmhosts: Attempting lmhosts lookup for name > NTWEB2.AIS.MSU.EDU<0x20> > [2000/01/04
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
2012 Jul 24
2
[PATCH 0/2] vhost-scsi: Check for tcm_vhost ABI version
From: Nicholas Bellinger <nab at linux-iscsi.org> Hi Anthony, Here are the two patches against Zhi's vhost-scsi tree to check for a supported version (VHOST_SCSI_ABI_VERSION=1) that's now exposed via the tcm_vhost ioctl. Please have a look and let me know if this is what you had in mind. Thanks! Nicholas Bellinger (2): vhost-scsi: Rename vhost_vring_target ->
2012 Jul 24
2
[PATCH 0/2] vhost-scsi: Check for tcm_vhost ABI version
From: Nicholas Bellinger <nab at linux-iscsi.org> Hi Anthony, Here are the two patches against Zhi's vhost-scsi tree to check for a supported version (VHOST_SCSI_ABI_VERSION=1) that's now exposed via the tcm_vhost ioctl. Please have a look and let me know if this is what you had in mind. Thanks! Nicholas Bellinger (2): vhost-scsi: Rename vhost_vring_target ->
2003 Feb 06
1
Samba-2.2.8pre1 available on samba.org mirrors
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 We've just posted a preview release of Samba 2.2.8 on samba.org. This is a non-production release provided for testing only. The final 2.2.8 will only include bug fixes for the 2.2.7a release. The source code can be downloaded from : http://download.samba.org/samba/ftp/pre/ The unpcompressed tarball and patch file have been signed using
2000 Jul 31
0
[patch] smbmount fixes for samba-2.0.7, testers wanted!
...fd = open("/dev/null", O_WRONLY)) < 0) + DEBUG(2,("mount.smbfs: can't open /dev/null\n")); + close_our_files(fd); + if (fd >= 0) { + dup2(fd, STDOUT_FILENO); + dup2(fd, STDERR_FILENO); + close(fd); + } + + /* here we are no longer interactive */ + pstrcpy(remote_machine, "smbmount"); /* sneaky ... */ + setup_logging("mount.smbfs",False); + reopen_logs(); + closed = 1; - dbf = NULL; - close_our_files(c?c->fd:-1); } -#endif - /* Wait for a signal from smbfs ... */ - CatchSignal(SIGUSR1, &usr1_handler); -...