Displaying 20 results from an estimated 30 matches for "path_len".
2006 Aug 02
2
[PATCH][RFC] permit domU userspace to watch xenstore
...kfree(watch->token);
+ kfree(watch);
+}
+
+static void watch_fired(struct xenbus_watch *watch,
+ const char **vec,
+ unsigned int len)
+{
+ struct watch_adapter *adap =
+ container_of(watch, struct watch_adapter, watch);
+ struct xsd_sockmsg hdr;
+ const char *path, *token;
+ int path_len, tok_len, body_len;
+
+ path = vec[XS_WATCH_PATH];
+ token = adap->token;
+
+ path_len = strlen(path) + 1;
+ tok_len = strlen(token) + 1;
+ body_len = path_len + tok_len;
+
+ hdr.type = XS_WATCH_EVENT;
+ hdr.len = body_len;
+
+ queue_reply(adap->dev_data, (char *)&hdr, sizeof(hdr));
+ qu...
2001 Feb 26
0
Problems with OpenSSH 2.5.1p1 on Solaris 8
...if (pathstr) {
+ char *nl;
+
+ pathstr += 6;
+ nl = strchr(pathstr, '\n');
+ if (!nl) {
+ /*
+ * EOF, so PATH is the last line
+ */
+ child_set_env(&env, &envsize, "PATH", pathstr);
+ } else {
+ char *mypath;
+ size_t path_len;
+
+ path_len = nl - pathstr;
+ mypath = xmalloc(path_len + 1);
+ memcpy(mypath, pathstr, path_len);
+ *(mypath + path_len) = 0;
+ child_set_env(&env, &envsize, "PATH", mypath);
+ xfree(mypath);
+ }
+ } else {
+nocando:
+ child_set_env(&env, &env...
2014 Nov 16
2
[PATCH] list-applications: Add support for pacman
..._list *apps = NULL, *ret = NULL;
+ struct guestfs_dirent *curr = NULL;
+ FILE *fp;
+ char line[1024];
+ size_t i, len;
+ CLEANUP_FREE char *name = NULL, *version = NULL, *desc = NULL;
+ CLEANUP_FREE char *arch = NULL, *url = NULL;
+ char *release = NULL;
+ char **key = NULL;
+ const size_t path_len = strlen ("/var/lib/pacman/local/") + strlen ("/desc");
+ struct guestfs_dirent_list *local_db = NULL;
+
+ local_db = guestfs_readdir (g, "/var/lib/pacman/local");
+ if (local_db == NULL)
+ return NULL;
+
+ /* Allocate 'apps' list. */
+ apps = safe_mall...
2014 Jan 01
0
Soft chroot jail for sftp-server
...;, ".."), ignoring backward references
> * that traverse the current directory or root, maintaining leading "/" and maintaining trailing "/" if possible.
> * The passed string is modified.
> */
> static char* shorten_path(char* path) {
> unsigned int path_len = strlen(path)+1;
> //char* short_path = path; malloc(sizeof(char) * short_path_len);
> size_t j = 0;
> size_t i = 0;
> //Make sure path doesn't contain any "//"
> for (i = 0; i < path_len; i++) {
> if (*(path+i) == '/' && j>0 &&...
2014 Nov 17
1
[PATCH] list-applications: Add support for pacman
...LL;
+ struct guestfs_dirent *curr = NULL;
+ FILE *fp;
+ size_t i, allocsize = 0;
+ ssize_t len;
+ CLEANUP_FREE char *name = NULL, *version = NULL, *desc = NULL;
+ CLEANUP_FREE char *arch = NULL, *url = NULL;
+ char **key = NULL, *rel = NULL, *ver = NULL, *p;
+ int32_t epoch;
+ const size_t path_len = strlen ("/var/lib/pacman/local/") + strlen ("/desc");
+
+ local_db = guestfs_readdir (g, "/var/lib/pacman/local");
+ if (local_db == NULL)
+ return NULL;
+
+ /* Allocate 'apps' list. */
+ apps = safe_malloc (g, sizeof *apps);
+ apps->len = 0;
+ ap...
2014 Nov 16
0
Re: [PATCH] list-applications: Add support for pacman
...ct guestfs_dirent *curr = NULL;
> + FILE *fp;
> + char line[1024];
> + size_t i, len;
> + CLEANUP_FREE char *name = NULL, *version = NULL, *desc = NULL;
> + CLEANUP_FREE char *arch = NULL, *url = NULL;
> + char *release = NULL;
> + char **key = NULL;
> + const size_t path_len = strlen ("/var/lib/pacman/local/") + strlen ("/desc");
> + struct guestfs_dirent_list *local_db = NULL;
> +
> + local_db = guestfs_readdir (g, "/var/lib/pacman/local");
> + if (local_db == NULL)
> + return NULL;
> +
> + /* Allocate 'app...
2004 Jan 06
1
[PATCH] possible bug in bindresvport
nfsmount doesnt work anymore for me. This patch fixes at least udp nfs
mounts. tcp does still hang. client and server is 2.6.
--- /dev/shm/bindresvport.c 2003-12-08 02:33:24.000000000 +0100
+++ klibc/inet/bindresvport.c 2004-01-06 21:05:02.283779072 +0100
@@ -23,7 +23,7 @@ int bindresvport(int sd, struct sockaddr
if (sin == NULL) {
sin = &me;
2011 Jun 09
0
Coverity: possible false positive in do_lxattrlist
http://git.annexia.org/?p=libguestfs.git;a=blob;f=daemon/xattr.c;h=2b4882a0de0982b52e35c0527dec9b238d83066d;hb=HEAD#l284
Coverity complains about the strcpy on line 295:
295 strcpy (&pathname[path_len+1], names[k]);
"Overrunning static array of size 4096 bytes at byte position 4096 by
accessing with pointer "&pathname[path_len + 1UL]" through dereference
in call to "strcpy". (Deref assumed on the basis of 'nonnull'
parameter attribute.)"
However AFAICT...
2007 Nov 02
0
[PATCH] PVWin: Fix warnings
...;
DECLARE_UNICODE_STRING_SIZE(buffer, 20);
WDF_OBJECT_ATTRIBUTES PdoAttributes;
DECLARE_CONST_UNICODE_STRING(DeviceLocation, L"Xen Bus");
WDF_QUERY_INTERFACE_CONFIG qiConfig;
- WDF_PDO_EVENT_CALLBACKS PdoCallbacks;
PXENPCI_XEN_DEVICE_DATA ChildDeviceData = NULL;
+ size_t path_len;
+
+ UNREFERENCED_PARAMETER(ChildList);
KdPrint((__DRIVER_NAME " --> ChildListCreateDevice\n"));
@@ -704,8 +691,12 @@ XenPCI_ChildListCreateDevice(WDFCHILDLIS
XenBusInterface.InterfaceHeader.Size = sizeof(XenBusInterface);
XenBusInterface.InterfaceHeader.Version = 1;
- Xe...
2014 Nov 17
2
Re: [PATCH] list-applications: Add support for pacman
...>> + FILE *fp;
>> + char line[1024];
>> + size_t i, len;
>> + CLEANUP_FREE char *name = NULL, *version = NULL, *desc = NULL;
>> + CLEANUP_FREE char *arch = NULL, *url = NULL;
>> + char *release = NULL;
>> + char **key = NULL;
>> + const size_t path_len = strlen ("/var/lib/pacman/local/") + strlen ("/desc");
>> + struct guestfs_dirent_list *local_db = NULL;
>> +
>> + local_db = guestfs_readdir (g, "/var/lib/pacman/local");
>> + if (local_db == NULL)
>> + return NULL;
>> +
>...
2012 Nov 01
2
[PATCH 0/2] New inspect_list_applications2 API
Here's the new API method and update to virt-inspector. I still need
to implement app_arch for debian and windows (if applicable), for now
they just return empty strings.
2016 Mar 07
1
[PATCH] inspect: list applications with APK
...goto out;
+ }
+
+ ret = apps;
+
+ out:
+ if (ret == NULL)
+ guestfs_free_application2_list (apps);
+ /*
+ if (fp)
+ fclose (fp);
+ */
+ return ret;
+}
+
static void list_applications_windows_from_path (guestfs_h *g, struct guestfs_application2_list *apps, const char **path, size_t path_len);
static struct guestfs_application2_list *
--
2.5.0
2012 Nov 01
4
[PATCH v2 0/3] New inspect_list_applications2 API
Here's the new API method and update to virt-inspector. I still need
to implement app_arch for debian and windows (if applicable), for now
they just return empty strings.
New in v2: incorporated feedback from v1, also added patch #3 which
updates the documentation where it references the deprecated API.
Take it or leave it.
2011 Jul 08
4
[PATCH 0/4] usr/kinit checkpatch
Various coding style fixes checkpatch warns about.
The goal is not to be 100% checkpatch compliant,
but to have more consistent coding style.
As this is a trivial patch serie, will land in 24 hours in klibc git,
unless of course ml review hits a bugger.
Checked with size(3) that the generated kinit, fstype, ipconfig and
nfsmount are the same.
maximilian attems (4):
[klibc] ipconfig: reduce
2016 Jan 26
2
Notification of file modification in subdirectories not working
...x3, filter=0x0,
path=/home/matr/localshare/watchfolder/test/subfile.txt
[2016/01/26 10:09:15.590760, 10, pid=12027, effective(1001, 1006),
real(1001, 0)] ../source3/smbd/notify_internal.c:710(notify_trigger_local)
notify_trigger_local called for
/home/matr/localshare/watchfolder/test/subfile.txt, path_len=40, filter=0
[2016/01/26 10:09:15.590800, 10, pid=12027, effective(1001, 1006),
real(1001, 0)] ../source3/smbd/notify_internal.c:735(notify_trigger_local)
recursive = true pathlen=40 (/)
[2016/01/26 10:09:15.590816, 1, pid=12027, effective(1001, 1006),
real(1001, 0)] ../librpc/ndr/ndr.c:402(ndr_...
2001 Mar 13
5
is this null block OK?
...rn 0;
}
static struct file *presto_log_open(struct presto_file_set *fset, char
*name, int flags)
{
struct presto_cache *cache = fset->fset_cache;
struct file_operations *fops;
struct inode_operations *iops;
struct file *f;
int error;
int mtpt_len, path_len;
char *path;
ENTRY;
mtpt_len = strlen(cache->cache_mtpt);
path_len = mtpt_len + strlen("/.intermezzo/") +
strlen(fset->fset_name) + strlen(name);
error = -ENOMEM;
PRESTO_ALLOC(path, char *, path_len + 1);
if (...
2012 Aug 29
5
[PATCH 0/4] Add hivex APIs into the libguestfs API (RHBZ#852394)
This adds most of the hivex APIs directly to the libguestfs API, so
that you can read and write Windows Registry hive files from
libguestfs without needing to download and upload hive files from the
guest.
This is analogous to how Augeas APIs are exposed already
(guestfs_aug_*)
Also, inspection is now done using the new APIs, which fixes the
following bug:
2016 Jan 22
2
Notification of file modification in subdirectories not working
On Thu, Jan 21, 2016 at 04:57:34AM -0800, ivenhov wrote:
> Hi
>
> Does anyone had similar issues in the past?
> I still cannot find reason why notification of file modification of files in
> subdirs is not visible on client machines
Someone needs to send network traces and debug level 10 logs
for this. And try to reproduce the same against a Windows
server.
Volker
--
SerNet
2017 Sep 20
7
[PATCH v2] 0/6] Various clean ups in lib/
v1 -> v2:
- Remove the unnecessary calls to guestfs_int_lazy_make_tmpdir
in the final patch.
Rich.
2017 Sep 19
7
[PATCH 0/6] Various clean ups in lib/
Miscellaneous small cleanups in lib/ directory.
Rich.