search for: enametoolong

Displaying 20 results from an estimated 48 matches for "enametoolong".

2019 Sep 02
2
vfs_shadow_copy2 not working
...you should be wary of automatic snapshot schemes that bump up toward this limit. Otherwise, the snapshots will not appear in shadow_copy2. One way to quickly tell if you're hitting the limit is to "cd" into the snapdir and "ls -l". If you've hit it then it will fail with ENAMETOOLONG.
2020 Mar 28
0
[klibc:update-dash] dash: exec: Return 126 on most errors in shellexec
...13d3eaf70082e1be214c42645bc186a ] Currently when shellexec fails on most errors the shell will exit with exit status 2. This patch changes it to 126 in order to avoid ambiguities with the exit status from a successful exec. The errors that result in 127 has also been expanded to include ENOTDIR, ENAMETOOLONG and ELOOP. Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au> Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/dash/exec.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/usr/dash/exec.c b/usr/dash/exec.c index e9e29b7e..d7ced357 10064...
2000 Dec 27
1
patch to support hurd-i386.
...exit(1); - } + { + size_t size = 100; + hostname = (char *)malloc(size); + while (hostname) { + if (gethostname(hostname, size) >= 0) + break; + if (errno != ENAMETOOLONG) { + perror("gethostname"); + exit(1); + } + size <<= 1; + hostname = realloc(hostname, size); + } + if (hostname == NULL) { +...
2011 Oct 25
0
Sprocket Digest + Debug combination broken?
Hi all, we''re just in the process of upgrading to the new asset pipeline, but I''m having an annoying issue with Sprockets. It turns out that I can''t enable both *debug* and *digest* in development mode. When I do, I get a Errno::ENAMETOOLONG because the digest becomes the *entire* *content* of the file instead of a hex. I get this with both sass and javascript. Anyone have any idea what I''m doing wrong? Thanks, /C The (things I think are) relevant information: The actual error: *Errno::ENAMETOOLONG in Welcome#index* Sh...
2013 Jul 19
2
[Bug 10037] New: do_mknod fails to create socket file
https://bugzilla.samba.org/show_bug.cgi?id=10037 Summary: do_mknod fails to create socket file Product: rsync Version: 3.0.9 Platform: All OS/Version: Solaris Status: NEW Severity: normal Priority: P5 Component: core AssignedTo: wayned at samba.org ReportedBy: simon.klinkert at gmail.com
2019 May 28
1
[libnbd PATCH] connect: Better handling of long socket names
...ily = AF_UNIX; - memset (sun.sun_path, 0, sizeof (sun.sun_path)); - strncpy (sun.sun_path, h->unixsocket, sizeof (sun.sun_path) - 1); - len = sizeof (sun.sun_family) + strlen (sun.sun_path) + 1; + socklen = strlen (h->unixsocket); + if (socklen > sizeof sun.sun_path) { + set_error (ENAMETOOLONG, "socket name too long: %s", h->unixsocket); + SET_NEXT_STATE (%.DEAD); + return -1; + } + memcpy (sun.sun_path, h->unixsocket, socklen); + len = sizeof sun; memcpy (&h->connaddr, &sun, len); h->connaddrlen = len; -- 2.20.1
2023 Jan 31
2
[PATCH libnbd v2 3/4] generator: Add APIs to get/set the socket activation socket name
...n the handle. */ > > + if (len == 0) { > > + free (h->sa_name); > > + h->sa_name = NULL; > > + return 0; > > + } > > + > > + /* Check the proposed name is short and alphanumeric. */ > > + if (len > 32) { > > + set_error (ENAMETOOLONG, "socket activation name should be " > > + "<= 32 characters"); > > I don't mind keeping us strict to start with and loosening it later if > someone demonstrates why it is needed. But systemd documents a larger > set of possible names: &g...
1998 Dec 08
1
Can't connect to shares w/2.0beta3 on OSF1
I was running 1.9.18p10 on a test DEC Unix 4.0d box here and I decided to give 2.0beta3 a try. For some reason, I cannot connect to any of the server's shares or even get a list of it's services (via Start->Run->\\server) from Win95 clients. It asks for a password and no matter what I put in there I get "The password is not correct. Try again." I configured Beta3 a la:
2023 Jan 31
1
[PATCH libnbd v2 3/4] generator: Add APIs to get/set the socket activation socket name
.../* Setting it to empty string stores NULL in the handle. */ > + if (len == 0) { > + free (h->sa_name); > + h->sa_name = NULL; > + return 0; > + } > + > + /* Check the proposed name is short and alphanumeric. */ > + if (len > 32) { > + set_error (ENAMETOOLONG, "socket activation name should be " > + "<= 32 characters"); I don't mind keeping us strict to start with and loosening it later if someone demonstrates why it is needed. But systemd documents a larger set of possible names: https://www.freedesktop.or...
2023 Jan 30
2
[PATCH libnbd v2 3/4] generator: Add APIs to get/set the socket activation socket name
...char *new_name; + + len = strlen (name); + + /* Setting it to empty string stores NULL in the handle. */ + if (len == 0) { + free (h->sa_name); + h->sa_name = NULL; + return 0; + } + + /* Check the proposed name is short and alphanumeric. */ + if (len > 32) { + set_error (ENAMETOOLONG, "socket activation name should be " + "<= 32 characters"); + return -1; + } + for (i = 0; i < len; ++i) { + if (! ascii_isalnum (name[i])) { + set_error (EINVAL, "socket activation name should contain " + "only alp...
2014 Sep 27
2
[PATCH 1/2] Implement realpath()
...me[0] == '.' && name[1] == '.') { + /* Handle ".." */ + p = memrchr(resolved_name, '/', p - resolved_name); + if (!p) + p = resolved_name; + } else { + /* Add directory separator and component */ + if (end - p < comp_len + 2) { + errno = ENAMETOOLONG; + return NULL; + } + *p = '/'; + memcpy(p + 1, name, comp_len); + p[1 + comp_len] = 0; + + link_len = readlink(resolved_name, link_target, + sizeof(link_target) - 1); + if (link_len < 0) { + if (errno == EINVAL || errno == ENOENT) { + /* Not a symlink - con...
2000 Sep 27
0
FreeBSD Security Advisory: FreeBSD-SA-00:53.catopen
...if (*nlspath == '%') { + spcleft = sizeof(path) - (pathP - path); if (*(nlspath + 1) == 'L') { ++nlspath; - strcpy(pathP, lang); + if (strlcpy(pathP, lang, spcleft) >= spcleft) { + free(base); + errno = ENAMETOOLONG; + return(NLERR); + } pathP += strlen(lang); } else if (*(nlspath + 1) == 'N') { ++nlspath; - strcpy(pathP, name); + if (strlcpy(pathP, name, spcleft) >= spcleft) { + free(base); + errno = ENAMETOOL...
2015 Feb 24
4
Call for testing: OpenSSH 6.8
On Mon, 23 Feb 2015, Kevin Brott wrote: > > Yup - that cleared that hurdle ... now it dies here on AIX: > > xlc_r -O2 -qarch=ppc -qalloca -I/usr/include -I/opt/freeware/include > -I. -I. -O2 -qarch=ppc -qalloca -I/usr/include -I/opt/freeware/include > -DSSHDIR=\"/usr/local/etc\" -D_PATH_SSH_PROGRAM=\"/usr/local/bin/ssh\" >
2019 Sep 02
0
vfs_shadow_copy2 not working
...f automatic snapshot schemes that bump up > toward this limit. Otherwise, the snapshots will not appear in > shadow_copy2. One way to quickly tell if you're hitting the limit is to > "cd" into the snapdir and "ls -l". If you've hit it then it will fail with > ENAMETOOLONG. > > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------...
2003 Oct 27
0
rsyncing fifos and sockets on FreeBSD
..._MKFIFO > if (S_ISFIFO(mode)) > return mkfifo(pathname, mode); > #endif > #if (HAVE_SYS_UN_H && HAVE_SYS_SOCKET_H) > if (S_ISSOCK(mode)) { > int sock; > struct sockaddr_un saddr; > > if (strlen(pathname) + 1 > sizeof(saddr.sun_path)) { > errno = ENAMETOOLONG; return -1; > } > > saddr.sun_family = AF_UNIX; > strncpy(saddr.sun_path, pathname, sizeof(saddr.sun_path)); > > if ((sock = socket(PF_UNIX, SOCK_STREAM, 0)) == -1) { > return -1; > } > unlink(pathname); > if ((bind(sock, (struct sockaddr*)&saddr,...
2013 Nov 26
2
Lustre 1.8 client on EL 6.5?
Hello, in preparation for CentOS 6.5 I was trying to build Lustre 1.8 client on CentOS 6.4 updated with 2.6.32-431 kernel. Seems like recent changes in fs.h (/usr/src/kernels/2.6.32-431.el6.x86_64/include/linux/fs.h) is causing problems. make[5]: Entering directory `/usr/src/kernels/2.6.32-431.el6.x86_64'' cc1: warnings being treated as errors
2014 Jul 11
1
libvirt build issue - make check fails , file name long
Hi, I was trying to build libvirt-0.10.2-29. Now, it builds fine in simple directory setting: like /home/itsme/test/libvirt/ But, if the directory setting is long: like /home/public/test/abc-v1/liibvrt-v1-v2/ = > it fails. Reason for failure is :qemumonitorjsontest I tried running the specific test case like : VIR_TEST_VERBOSE=1 ./qemumonitorjsontest ======================== 1)
1998 Oct 14
0
The poisoned NUL byte
...*/ if (*path != ''/'') { /* Ohoo... */ @@ -122,7 +122,7 @@ } /* Safely copy the next pathname component. */ while (*path != ''\0'' && *path != ''/'') { - if (path > max_path) { + if (new_path > max_path) { errno = ENAMETOOLONG; return NULL; } ------------------------------------------------------------------ -- Olaf Kirch | --- o --- Nous sommes du soleil we love when we play okir@monad.swb.de | / | \ sol.dhoop.naytheet.ah kin.ir.samse.qurax okir@caldera.de +-------------------- Why Not?! ---...
2003 Jan 08
3
long directory name problem
Does rsync has directory name length limit? I was trying to rsync a directory that has the name length of 34 characters and getting permission denied error. $ rsync -avz --delete --force -e ssh /usr/local/apache/htdocs 192.168.0.2:/usr/local/apache building file list ... readlink htdocs/CorporateLegalTimesEDITORIAL_files/cBug_blueXs.gif: Permission denied readlink
2001 Jul 23
1
forwarded message from mouring@etoh.eviladmin.org
On Mon, Jul 23, 2001 at 12:49:14AM +0100, Matthew Vernon wrote: > ------- start of forwarded message ------- > From: <mouring at etoh.eviladmin.org> > To: Matthew Vernon <matthew at empire.ucam.org> > cc: <openssh-unix-dev at mindrot.org> > Subject: Re: [patch] GNU/Hurd compatibility patches > Date: Sun, 22 Jul 2001 12:39:32 -0500 (CDT) > > > We