Displaying 17 results from an estimated 17 matches for "pstrcat".
Did you mean:
strcat
2012 Aug 21
5
[PATCH 1/2 v1] blkdrv: Add queue limits parameters for sg block drive
...#endif
#ifdef CONFIG_FIEMAP
#include <linux/fiemap.h>
@@ -829,6 +830,62 @@ static int hdev_probe_device(const char *filename)
return 0;
}
+static void read_queue_limit(char *path, const char *filename, unsigned int *val)
+{
+ FILE *f;
+ char *tail = path + strlen(path);
+
+ pstrcat(path, MAXPATHLEN, filename);
+ f = fopen(path, "r");
+ if (!f) {
+ goto out;
+ }
+
+ fscanf(f, "%u", val);
+ fclose(f);
+
+out:
+ *tail = 0;
+}
+
+static void sg_get_queue_limits(BlockDriverState *bs, const char *filename)
+{
+ DIR *ffs;
+ struct d...
2012 Aug 21
5
[PATCH 1/2 v1] blkdrv: Add queue limits parameters for sg block drive
...#endif
#ifdef CONFIG_FIEMAP
#include <linux/fiemap.h>
@@ -829,6 +830,62 @@ static int hdev_probe_device(const char *filename)
return 0;
}
+static void read_queue_limit(char *path, const char *filename, unsigned int *val)
+{
+ FILE *f;
+ char *tail = path + strlen(path);
+
+ pstrcat(path, MAXPATHLEN, filename);
+ f = fopen(path, "r");
+ if (!f) {
+ goto out;
+ }
+
+ fscanf(f, "%u", val);
+ fclose(f);
+
+out:
+ *tail = 0;
+}
+
+static void sg_get_queue_limits(BlockDriverState *bs, const char *filename)
+{
+ DIR *ffs;
+ struct d...
2000 Jan 30
0
More checks for param/loadparm.c
...char *pszParmValue, char **parm_ptr) {
> char *p;
> pstring buf;
>
> *buf = '\0';
> for (p=strtok(pszParmValue, " \t"); p != NULL; p=strtok(NULL," \t")) {
> if (validate_netbios_name(p) == False)
> return False;
> pstrcat(buf,p);
> pstrcat(buf," ");
> }
> buf[MIN(strlen(buf)-1,sizeof(buf))] = '\0';
>
> /* I've treated it here as an uppercase pstring. P_USTRING --davecb */
> string_set(parm_ptr,buf);
> unix_to_dos(*(char **)parm_ptr, True);
> stru...
2000 Apr 25
3
passwords for NT and AIX
I've finally gotten Samba (version 1.9.18p4) working on a RS/6000 server running AIX version 4.3.2, for a group of Windows NT 4.0 workstations on build 5 to access some shared directories. Everything works fine when I set them up - I have
encrypt passwords = yes
smb passwd file = /usr/local/samba/private/smbpasswd
in my smb.conf, added the passwords to the smbpasswd file, and it
2003 May 20
1
smbd - wide links / possible buffer failure??
...;
if (conn->vfs_ops.readlink(conn, name, flink, sizeof(pstring)
-1) != -1) {
DEBUG(3,("reduce_name: file path name %s is a
symlink\nChecking it's path\n", name));
if (*flink == '/') {
@@ -750,6 +751,24 @@
pstrcat(cleanlink, flink);
}
unix_clean_name(cleanlink);
+
+ if (!vfs_GetWd(conn,savedir)) {
+ DEBUG(0,("couldn't vfs_GetWd for %s
%s\n",name,cleanlink));
+ return(False);
+ }
+
+...
2007 Feb 05
0
[SAMBA-SECURITY] CVE-2007-0452: Potential DoS against smbd in Samba 3.0.6 - 3.0.23d
...******/
-NTSTATUS unlink_internals(connection_struct *conn, uint32 dirtype, char *name, BOOL has_wild)
+NTSTATUS unlink_internals(connection_struct *conn, uint32 dirtype, char *name, BOOL has_wild, BOOL can_defer)
{
pstring directory;
pstring mask;
@@ -2000,7 +2000,7 @@
if (!has_wild) {
pstrcat(directory,"/");
pstrcat(directory,mask);
- error = can_delete(conn,directory,dirtype,bad_path,False);
+ error = can_delete(conn,directory,dirtype,bad_path,False,can_defer);
if (!NT_STATUS_IS_OK(error))
return error;
@@ -2058,7 +2058,7 @@
}
slprintf(fname,sizeof(f...
2007 Feb 05
0
[SAMBA-SECURITY] CVE-2007-0452: Potential DoS against smbd in Samba 3.0.6 - 3.0.23d
...******/
-NTSTATUS unlink_internals(connection_struct *conn, uint32 dirtype, char *name, BOOL has_wild)
+NTSTATUS unlink_internals(connection_struct *conn, uint32 dirtype, char *name, BOOL has_wild, BOOL can_defer)
{
pstring directory;
pstring mask;
@@ -2000,7 +2000,7 @@
if (!has_wild) {
pstrcat(directory,"/");
pstrcat(directory,mask);
- error = can_delete(conn,directory,dirtype,bad_path,False);
+ error = can_delete(conn,directory,dirtype,bad_path,False,can_defer);
if (!NT_STATUS_IS_OK(error))
return error;
@@ -2058,7 +2058,7 @@
}
slprintf(fname,sizeof(f...
2003 Oct 22
1
more solaris/samba 3 build problems
...his header is
obsolete, use ap_compat.h instead"
In file included from
/usr/local/src/samba/samba-3.0.0/source/include/includes.h:902,
from
/usr/local/src/samba/samba-3.0.0/source/dynconfig.c:21:
/usr/local/src/samba/samba-3.0.0/source/include/safe_string.h:124:
warning: `pstrcat' redefined
/usr/local/include/ap_compat.h:300: warning: this is the location of the
previous definition
Compiling /usr/local/src/samba/samba-3.0.0/source/smbd/build_options.c
In file included from
/usr/local/src/samba/samba-3.0.0/source/include/includes.h:337,
from
/usr/loc...
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
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
2003 Nov 08
1
Samba 3 doesn't compile - the saga continues...
...u need a copy of Slackware to
test against?
Here is the latest set of warnings and errors preventing Samba 3 from compiling
on Slackware 9.1...
Compiling smbd/server.c
In file included from include/includes.h:902,
from smbd/server.c:23:
include/safe_string.h:124:1: warning: "pstrcat" redefined
In file included from include/includes.h:337,
from smbd/server.c:23:
/usr/include/ap_compat.h:300:1: warning: this is the location of the previous
definition
Linking bin/smbd
/usr/lib/libkrb5.a(cc_file.o)(.text+0x1d90): In function
`krb5_fcc_generate_new':
/root...
2000 Apr 03
1
2.0.7pre3: smbclient issues
My systems: rh61, 2.2.14 + smbfs-nls.patch.
I refer to 2.0.7pre3 as 2.0.7
=== 1) "ls" of an empty dir
1a)
1.9.18 doing "ls" to an empty samba dir:
smb: \> ls
49550 blocks of size 16384. 33754 blocks available
1b)
2.0.7 doing "ls" to an empty samba dir:
smb: \> ls
ERRDOS - ERRbadfile (File not found.) listing \* <=======
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
2003 Dec 01
0
No subject
...*************************************
+ get file restarting at end of local file
+ ****************************************************************************/
+static void cmd_reget(void)
+{
+ pstring lname;
+ pstring rname;
+ char *p;
+
+ pstrcpy(rname,cur_dir);
+ pstrcat(rname,"\\");
+
+ p = rname + strlen(rname);
+
+ if (!next_token(NULL,p,NULL,sizeof(rname)-strlen(rname))) {
+ DEBUG(0,("reget <filename>\n"));
+ return;
+ }
+ pstrcpy(lname,p);
+ dos_clean_name(rname);...
2003 Dec 01
0
No subject
...= strrchr(sid_file, '/');
if(p != NULL) {
- *++p = '\0';
+ *(p+1) = '\0';
+ if (p != sid_file) *p = '\0';
}
if (!directory_exist(sid_file, NULL)) {
@@ -854,6 +855,9 @@
}
}
+ if (p != sid_file) {
+ pstrcat(sid_file, "/");
+ }
pstrcat(sid_file, "MACHINE.SID");
if((fd = sys_open(sid_file, O_RDWR | O_CREAT, 0644)) == -1) {
-----
TAKAHASHI, Motonobu(monyo) monyo@samba.gr.jp
Personal - http://home.monyo.com/
Samba Team - http://samba.org/ Samba-JP - http...
2003 Dec 01
0
No subject
...fs.c,v
retrieving revision 1.10.4.6
diff -u -r1.10.4.6 msdfs.c
--- msdfs/msdfs.c 19 Aug 2001 17:21:02 -0000 1.10.4.6
+++ msdfs/msdfs.c 20 Aug 2001 23:15:00 -0000
@@ -33,13 +33,11 @@
static void create_nondfs_path(char* pathname, struct dfs_path* pdp)
{
- pstrcpy(pathname,pdp->volumename);
- pstrcat(pathname,"\\");
- pstrcat(pathname,pdp->restofthepath);
+ pstrcpy(pathname,pdp->reqpath);
}
/**********************************************************************
- Parse the pathname of the form \hostname\service\volume\restofthepath
+ Parse the pathname of the form \ho...
2003 Dec 01
0
No subject
...*******************************************************************
+ get file restarting at end of local file
+ ****************************************************************************/
+static void cmd_reget(void)
+{
+ pstring lname;
+ pstring rname;
+ char *p;
+
+ pstrcpy(rname,cur_dir);
+ pstrcat(rname,"\\");
+
+ p = rname + strlen(rname);
+
+ if (!next_token(NULL,p,NULL,sizeof(rname)-strlen(rname))) {
+ DEBUG(0,("reget <filename>\n"));
+ return;
+ }
+ pstrcpy(lname,p);
+ dos_clean_name(rname);
+
+ next_token(NULL,lname,NULL,sizeof(lname));
+
+ do_reget(rname...