search for: pathlen

Displaying 20 results from an estimated 23 matches for "pathlen".

2001 Mar 13
5
is this null block OK?
...lt;linux/intermezzo_fs.h> #include <linux/intermezzo_upcall.h> #include <linux/intermezzo_psdev.h> #include <linux/intermezzo_kml.h> int presto_rewrite_close(struct rec_info *rec, struct presto_file_set *fset, char *path, __u32 pathlen, int ngroups, __u32 *groups, __u64 ino, __u32 generation, struct presto_version *new_file_ver); static int presto_log(struct presto_file_set *fset, struct rec_info *rec, const char *buf, size_t size...
2009 Mar 05
1
[PATCH 3/5] COM32: Improve opendir() to deal with no '/' at end of string
...ring temporarily) then making the COMBOOT call. diff --git a/com32/lib/opendir.c b/com32/lib/opendir.c index aa2ba5b..7063f8c 100644 --- a/com32/lib/opendir.c +++ b/com32/lib/opendir.c @@ -16,10 +17,20 @@ DIR *opendir(const char *pathname) { DIR *newdir; com32sys_t regs; + char *tpath; + int pathlen; newdir = NULL; + pathlen = strlen(pathname); + if (pathname[pathlen-1] != '/') { + tpath = calloc(1, pathlen + 2); + strcpy(tpath, pathname); + strcpy(tpath + pathlen, "/"); + } else { + tpath = pathname; + } - strlcpy(__com32.cs_bounce, pathname, __com32.cs_bounce_size);...
2001 Aug 13
1
[PATCH] Maildir support
...mail.\n"); + else if (mailstat.st_mtime < mailstat.st_atime) + printf("You have mail.\n"); + else + printf("You have new mail.\n"); + } + +#ifdef MAILDIR_FORMAT + /* Maildir format mailcheck */ + else if (S_ISDIR(mailstat.st_mode)) { + char *dirname; + int pathlen; + DIR *newdir, *curdir; + + pathlen = strlen(mailbox) + 5; + dirname = malloc(pathlen); + + snprintf(dirname, pathlen, "%s/new", mailbox); + newdir = opendir(dirname); + + snprintf(dirname, pathlen, "%s/cur", mailbox); + curdir = opend...
2012 Oct 24
2
[BUG][PATCH][BTRFS-PROGS] Bug overflow fix
If there''s is a long name directory exists in the /dev, then an overflow will hit in function utils.c btrfs_scan_one_dir:1013! The minimal fix is to use snprintf instead of strcpy. The reason why not using strncpy is that, if there is no null byte among the first n bytes of src, the string placed in dest will not be null - terminated. Signed-off-by: Rock Lee
2008 Dec 02
2
symlink() failure in 1.2 managesieve
I've been simultaneously learning about dovecot and experimenting with the 1.2.alpha4. To start I built an rpm under CentOS 5.2 from: dovecot-1.2.alpha4.tar.gz dovecot-1.2-managesieve-0.11.2.tar.gz dovecot-1.2.alpha4-managesieve-0.11.2.diff.gz dovecot-1.2.alpha4.tar.gz dovecot-1.2-sieve-0.1.2.tar.gz and then setup with mysql to use virtual users. Mail-wise, it all works. :)
2006 Jul 17
2
SMF/process contracts in Solaris 10
I've searched the archive for this mailing list and the bug list for OpenSSH for this, and I'm finding nothing. I'd appreciate it if somoene could point me to an existing thread about this. (I know that other people are aware of the problem, though, so I'm a bit surprised to find nothing.) We're running OpenSSH under Solaris 10 using SMF instead of a legacy init script. SMF
2002 Jan 31
7
x509 for hostkeys.
This (very quick) patch allows you to connect with the commercial ssh.com windows client and use x509 certs for hostkeys. You have to import your CA cert (ca.crt) in the windows client and certify your hostkey: $ cat << 'EOF' > x509v3.cnf CERTPATHLEN = 1 CERTUSAGE = digitalSignature,keyCertSign CERTIP = 0.0.0.0 [x509v3_CA] basicConstraints=critical,CA:true,pathlen:$ENV::CERTPATHLEN keyUsage=$ENV::CERTUSAGE [x509v3_IPAddr] subjectAltName=IP:$ENV::CERTIP [x509v3_DNSName] subjectAltName=DNS:$ENV::CERTDNS...
2017 Nov 24
1
SSL configuration
...2d:36:f8:e3:fc:f2:33:6a:b9:39:31:c5:af:c4:8d: 0d:1d:64:16:33:aa:fa:84:29:b6:d4:0b:c0:d8:7d: c3:93 Exponent: 65537 (0x10001) X509v3 extensions: X509v3 Basic Constraints: critical CA:TRUE, pathlen:0 X509v3 Key Usage: critical Digital Signature, Certificate Sign, CRL Sign Authority Information Access: OCSP - URI:http://isrg.trustid.ocsp.identrust.com CA Issuers - URI:http://apps.identrust.com/roots/dstrootcax3.p7c...
2008 Jan 20
4
read.table: wrong error message? (PR#10592)
...r-Encoding: 7bit primed rule role dist starttime target.utt rule.freq primeperiod.length dialogue.length dialogue.id words.repeated words.repeated.prop head.repeated head.freq head.pos prime.gaze target.gaze eyecontact familiar convseq length doc.score friend task.familiar same.specrule derivation pathlen distituent 0 vp---vbg-vp i 2 5.67 4 False 172 70 261.5322 1 0 0/7 True na None None None 1 0 1 7 135 - - 1 None - - 0 vp---to-vp r 1 6.03 4 False 758 13 261.5322 1 0 0/6 True na None None None 1 0 1 6 135 - - 1 None - - 0 vp---to-vp i 2 6.03 4 False 758 70 261.5322 1 0 0/6 True na None None None 1...
2020 Mar 18
0
[PATCH i-g-t 2/4] lib/igt_debugfs: Add igt_debugfs_pipe_dir()
...r); + + return ret; +} + /** * igt_debugfs_open: * @filename: name of the debugfs node to open diff --git a/lib/igt_debugfs.h b/lib/igt_debugfs.h index 7d1a6175..15741a40 100644 --- a/lib/igt_debugfs.h +++ b/lib/igt_debugfs.h @@ -36,6 +36,7 @@ char *igt_debugfs_path(int device, char *path, int pathlen); int igt_debugfs_dir(int device); int igt_debugfs_connector_dir(int device, char *conn_name, int mode); +int igt_debugfs_pipe_dir(int device, int pipe, int mode); int igt_debugfs_open(int fd, const char *filename, int mode); void __igt_debugfs_read(int fd, const char *filename, char *buf,...
2020 Apr 17
0
[PATCH i-g-t v3 3/5] lib/igt_debugfs: Add igt_debugfs_pipe_dir()
...r); + + return ret; +} + /** * igt_debugfs_open: * @filename: name of the debugfs node to open diff --git a/lib/igt_debugfs.h b/lib/igt_debugfs.h index 7d1a6175..15741a40 100644 --- a/lib/igt_debugfs.h +++ b/lib/igt_debugfs.h @@ -36,6 +36,7 @@ char *igt_debugfs_path(int device, char *path, int pathlen); int igt_debugfs_dir(int device); int igt_debugfs_connector_dir(int device, char *conn_name, int mode); +int igt_debugfs_pipe_dir(int device, int pipe, int mode); int igt_debugfs_open(int fd, const char *filename, int mode); void __igt_debugfs_read(int fd, const char *filename, char *buf,...
2004 Sep 18
1
[LLVMdev] MAXPATHLEN' undeclared (first use this function)
...atform/Path.cpp:23, from /usr/local/src/llvm/lib/System/Path.cpp:27: /usr/local/build/llvm/lib/System/platform/../Unix/Path.cpp: In member function `bool llvm::sys::Path::create_directory(bool)': /usr/local/build/llvm/lib/System/platform/../Unix/Path.cpp:343: error: ` MAXPATHLEN' undeclared (first use this function) --------------------------------- MAXPATHLEN is on Interix defined in <limits.h>. However, it doesn't seem to have any effect including it before any other header files in the system specific Path.cpp for Interix as seen above: ----------------...
2016 Jan 26
2
Notification of file modification in subdirectories not working
...al.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_print_debug) e: struct notify_db_entry server: struct server_id pid : 0x0000000000002ee9 (12009) task_id...
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
2012 Sep 03
1
[GIT-PULL] XFS filesystem driver
...>mode == DT_DIR) { + XFS_PVT(inode)->i_btree_offset = 0; + XFS_PVT(inode)->i_leaf_ent_offset = 0; + } + + return inode; + +out: + return NULL; +} + +static int xfs_readlink(struct inode *inode, char *buf) +{ + struct fs_info *fs = inode->fs; + xfs_dinode_t *core; + int pathlen = -1; + xfs_bmbt_irec_t rec; + block_t db; + char *dir_buf; + + core = xfs_dinode_get_core(fs, inode->ino); + if (!core) { + xfs_error("Failed to get dinode from disk (ino 0x%llx)", inode->ino); + goto out; + } + + pathlen = be64_to_cpu(core->di_size); + i...
2019 Jul 09
6
Dovecot 2.3.6 on Solaris10: build issues, segfaults
...num = 400} ctx = {pool = 0x52b58, path = 0x50468 "/local/dovecot/etc/dovecot/dovecot.conf", , all_parsers = {arr = {buffer = 0x58160, element_size = 4}, v = 0x58160, v_modifiable = 0x58160}, root_parsers = 0x52b70, cur_section = 0x58388, cur_input = 0x0, str = 0x58458, pathlen = 0, section_counter = 6, error = 0x0, old = 0x58580, seen_settings = {_table = 0x0, _key = 0x0, _keyp = 0x0, _const_key = 0x0, _value = 0x0, _valuep = 0x0}, filter = 0x0, expand_values = false, hide_errors = false} i = 33 count = 33 key = 0x0 value = 0x0 full_line = 0x0...
2012 Oct 18
10
[PATCH 0/10] Add a mini-library for running external commands.
Inspired by libvirt's virCommand* internal mini-library, this adds some internal APIs for running commands. The first patch contains the new APIs. The subsequent patches change various parts of the library over to use it. Rich.
2020 Apr 17
5
[PATCH i-g-t v2 0/5] Add nouveau-crc tests
From: Lyude Paul <lyude at redhat.com> (Just forwarding this to nouveau's ml, since I completely forgot to before) Nouveau has finally gotten CRC support, hooray! Well, it's under review at least: https://patchwork.freedesktop.org/series/74804/ (it has a cover letter, but nouveau's mailing list configuration has blocked the email so I'm waiting for a moderator to fix that)
2015 Dec 15
8
[PATCH] xfs: Add support for v3 directories
...r_maxrecs(fsize, 0)); bno = fsblock_to_bytes(fs, be64_to_cpu(pp[0])) >> BLOCK_SHIFT(fs); @@ -278,9 +283,9 @@ static int xfs_readlink(struct inode *inode, char *buf) } if (core->di_format == XFS_DINODE_FMT_LOCAL) { - memcpy(buf, (char *)&core->di_literal_area[0], pathlen); + memcpy(buf, XFS_DFORK_PTR(core, XFS_DATA_FORK), pathlen); } else if (core->di_format == XFS_DINODE_FMT_EXTENTS) { - bmbt_irec_get(&rec, (xfs_bmbt_rec_t *)&core->di_literal_area[0]); + bmbt_irec_get(&rec, XFS_DFORK_PTR(core, XFS_DATA_FORK)); db = fsblock_to_bytes(fs, rec...
2016 Aug 05
0
Wine release 1.9.16
...elligent and correct RegistryPath if possible. ntoskrnl.exe: Track drivers created with IoCreateDriver. ntoskrnl.exe: Implement ObReferenceObjectByName but only for loaded drivers. winedevice: Use IoCreateDriver and IoDeleteDriver. Bernhard Übelacker (2): wininet/tests: Fix pathLen given to InternetCrackUrlA. dinput8/tests: Add valid wide string termination to actionName member. Bruno Jesus (3): joy.cpl: Display the correct number of button boxes during test. ws2_32/tests: Add tests for InetNtopW. mcicda: Use a helper to read the CD-ROM TOC. Christia...