search for: nfd

Displaying 20 results from an estimated 29 matches for "nfd".

Did you mean: fd
2000 Nov 08
1
socket leakage patch
...re that I haven't overlooked something. - Jamie -------------- next part -------------- diff -uNr tinc-1.0pre2.org/src/net.c tinc-1.0pre2/src/net.c --- tinc-1.0pre2.org/src/net.c Wed May 31 12:23:05 2000 +++ tinc-1.0pre2/src/net.c Wed Nov 8 09:36:05 2000 @@ -357,6 +357,7 @@ if(setsockopt(nfd, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one))) { + close(nfd); syslog(LOG_ERR, _("setsockopt: %m")); return -1; } @@ -364,6 +365,7 @@ flags = fcntl(nfd, F_GETFL); if(fcntl(nfd, F_SETFL, flags | O_NONBLOCK) < 0) { + close(nfd); sys...
2019 Dec 11
1
Mac clients trouble with NFD accented characters on Samba share
File names on a Samba share with accented characters using the NFD form of UTF8 cannot be seen or used by Mac clients. While tying to find a solution, I came across this old thread : https://lists.samba.org/archive/samba/2014-December/187545.html ("[Samba] Mount unix samba 4 share to osx client without mangled file names") A reply in that thread su...
2019 Aug 27
1
[PATCH nbdkit] server: Try hard to maintain invariant that fds 0, 1 and 2 are always open.
...Calls close (fd). As a special case if fd is stdin/stdout/stderr + * then it reopens the file descriptor on /dev/null. This allows us + * to maintain certain invariants for nbdkit and plugins. In all + * cases this ignores errors. + */ +void +close_or_nullify_fd (int fd) +{ + int flags; + int nfd; + + close (fd); + + if (fd == STDIN_FILENO) + flags = O_RDONLY; + else if (fd == STDOUT_FILENO || fd == STDERR_FILENO) + flags = O_WRONLY; + else + return; + + nfd = open ("/dev/null", flags); + if (nfd == -1) + return; + if (nfd != fd) { + dup2 (nfd, fd); + clos...
2016 Oct 05
3
Dev: new option to mark all tincd socket of a tincd process
I know i'm new to the list but i'd like to propose something for tincd daemon. I'd like to mark all sockets established by a tincd process with a mark passed as an argument in the command line. What could be the purpose of this new option? The goal of this option is to be able to have several tincd process running at the same time using the same port but using different ip. In
2002 Jun 10
2
Crashing R (PR#1651)
Concerns: R 1.5.0 gui version, Windows (downloaded binary) and Linux (installed from sources). # Load the data from the attached file: kk<-read.table("__filename__", header=1) # attach the data: attach(kk) Snr<-factor(Snr) # fool around with a call to anova.glm(): anova.glm( aov( nFD~Type+size+Modality+Error(Snr/(Type+size+Modality)) ) ) # Error: object nFD not found # Well, I thought I had attached that. Anyway: anova.glm(aov( nFD~Type+size+Modality+Error(Snr/(Type+size+Modality))), data=kk) # Same message # In addition, warning message: <lots of output> R dumps core. On...
2005 Oct 27
0
Converting OS X UTF-8 NFD to UTF-8 NFC
To make rsync work better when rsyncing between OS X (whose filenames are encoded in UTF-8 NFD form) and just about every other OS (whose filenames are encoded in UTF-8 NFC form), I wrote a little patch for rsync that converts the filenames to NFC before sending them to the other side. It uses libidn for that, and currently has no option to enable/disable this behaviour, but since on OS X a...
2013 Apr 25
1
search and UTF-8 normalization forms (NFD)
Hello, on a system with dovecot 2.2 I've got a mailbox containing multiple mails from a person called Kr?ger, but From: header encoded differently. Some are encoded in UTF-8 normalization form decomposed (as used by Mac OSX), that is u and umlaut accent as sperate combined codepoints instead of one ?: From: =?utf-8?Q?replaced_Kru=CC=88ger?= <krueger at some.domain> Searching within
2015 Feb 26
4
Call for testing: OpenSSH 6.8
...> ah, looks like we need to copy some bits from monitor_fdpass.c Perhaps like this: diff --git regress/netcat.c regress/netcat.c index 3f100bd..29e85bf 100644 --- regress/netcat.c +++ regress/netcat.c @@ -1014,43 +1014,44 @@ fillbuf(int fd, unsigned char *buf, size_t *bufpos) void fdpass(int nfd) { - struct msghdr mh; +#if defined(HAVE_SENDMSG) && (defined(HAVE_ACCRIGHTS_IN_MSGHDR) || defined(HAVE_CONTROL_IN_MSGHDR)) + struct msghdr msg; +#ifndef HAVE_ACCRIGHTS_IN_MSGHDR union { struct cmsghdr hdr; char buf[CMSG_SPACE(sizeof(int))]; } cmsgbuf; struct cmsghdr *cmsg; - s...
2015 Feb 25
2
Call for testing: OpenSSH 6.8
On 24/02/15 21:56, Tim Rice wrote: > On Wed, 25 Feb 2015, Damien Miller wrote: > > | On Tue, 24 Feb 2015, Tom G. Christensen wrote: > | > | > I've switched to HEAD in the git repo and it now builds on Solaris > | > 2.6, 7, 8 and 9 but the testsuite still cannot be built due to the > | > missing <err.h>. > > The err.h issue is fixes but there still
2004 Jan 13
1
tftpd-hpa suggestions
Hello, Peter and others! there are some issues regarding the tftp-hpa server: 1. Running as Windows service seems to require that the application does not detach (otherwise "net start" says smth. like "could not start, the service didn't report any errors"). The attached patch adds the option "-n", which can be used to have tftpd run in foreground.
2014 Dec 10
2
Mount unix samba 4 share to osx client without mangled file names
...` are displayed mangled (`C7XSWH~V`) on the osx client. When I create a file with special chars on the OSX client mount, it displays correctly in OSX but on the unix server it is display with a weird symbol like `File with ?quotes?`. I assume it is because OSX expects the filenames to be in utf-8 nfd form, but the filenames on the server server are stored in utf-8 nfc form. Am I right about this? Is this the problem? Basically I want to have a working samba share on my linux server where users from OSX and unix clients can access and store files, and special chars in file names should be allo...
2001 Nov 19
1
Unicode? Diacriticals
I just got 2.2.2 setup on a Mac OSX machine using the Samba X from the SourceForge project. Testing showed great performance, but clients can't access files with diacriticals in the filenames. I couldn't find anything on how to do this with the provided configuration tool, but wonder if there's a way to do so directly in Samba. (?) Also, we're a small shop and I'm mapping
2010 Nov 13
3
[PATCH 1/4] Experimental IFF_ONE_QUEUE support for Linux
--- doc/tinc.conf.5.in | 3 +++ src/linux/device.c | 7 +++++++ 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/doc/tinc.conf.5.in b/doc/tinc.conf.5.in index 2bfd5fe..01f7f81 100644 --- a/doc/tinc.conf.5.in +++ b/doc/tinc.conf.5.in @@ -255,6 +255,9 @@ a lookup if your DNS server is not responding. This does not affect resolving hostnames to IP addresses from the host
2020 Mar 28
0
[klibc:update-dash] dash: redir: Handle nested exec within REALLY_CLOSED redirection
...*/ +static unsigned closed_redirs; + STATIC int openredirect(union node *); #ifdef notyet STATIC void dupredirect(union node *, int, char[10]); @@ -86,6 +88,20 @@ STATIC void dupredirect(union node *, int); STATIC int openhere(union node *); +static unsigned update_closed_redirs(int fd, int nfd) +{ + unsigned val = closed_redirs; + unsigned bit = 1 << fd; + + if (nfd >= 0) + closed_redirs &= ~bit; + else + closed_redirs |= bit; + + return val & bit; +} + + /* * Process a list of redirection commands. If the REDIR_PUSH flag is set, * old file descriptors are stashe...
2014 Dec 11
1
Mount unix samba 4 share to osx client without mangled file names
...`File with ?quotes?`. > That's the Unicode glyph for character in the Unicode private use > range. OS X maps all illegal NTFS characters to the Unicode private > range, the mapping is the venerable SFM sheme. > >> I assume it is because OSX expects the filenames to be in utf-8 nfd >> form, but the filenames on the server server are stored in utf-8 nfc form. > No, different issue, just as bad. :) > >> Am I right about this? Is this the problem? >> >> Basically I want to have a working samba share on my linux server where >> users from OSX a...
2016 Aug 18
5
[PATCH v2 0/4] New getprogname module
...1 - modules/rbtree-oset-tests | 1 - modules/rbtreehash-list-tests | 1 - modules/spawn-pipe-tests | 1 - modules/system-quote-tests | 1 - modules/uniname/uniname-tests | 1 - modules/uninorm/nfc-tests | 1 - modules/uninorm/nfd-tests | 1 - modules/uninorm/nfkc-tests | 1 - modules/uninorm/nfkd-tests | 1 - modules/unistdio/u16-vsnprintf-tests | 1 - modules/unistdio/u16-vsprintf-tests | 1 - modules/unistdio/u32-vsnprintf-tests | 1 - modules/unistdio/u32-vsprintf-tests | 1...
2014 Dec 10
0
Mount unix samba 4 share to osx client without mangled file names
...gt; weird symbol like `File with ?quotes?`. That's the Unicode glyph for character in the Unicode private use range. OS X maps all illegal NTFS characters to the Unicode private range, the mapping is the venerable SFM sheme. > I assume it is because OSX expects the filenames to be in utf-8 nfd > form, but the filenames on the server server are stored in utf-8 nfc form. No, different issue, just as bad. :) > Am I right about this? Is this the problem? > > Basically I want to have a working samba share on my linux server where > users from OSX and unix clients can access...
2004 May 01
1
PCA filtering
...e a function under R that does principal component analysis and then use the selected eignevectors to filter the data and transform back to the original coordinates? If there isn't, can someone guide as to how to do this approach. Much appreciated. Sami Saad El Kurdy SENIOR GEOPHYSICIST, NFD/1 Reservoir & Fields Development Department North Field Development Staff Number: 20504 Tel: 974 449 1247 Email: elkurdy at qp.com.qa -------------------------------------------------------------------------------------------------- Confidentiality Notice : This e-mail and any...
2008 Nov 24
1
SendText and non-ASCII characters
Hi, Is is possible to "translate" non-english text into ASCII text so that SIP phones would correctly display non-ASCII characters received from SendText() ? I think SIP MESSAGE (rfc3428) on which SendText() currently relies, defines "text/plain" Content-type but googling, I can't find a source describing what text/plain can or cannot be. Regards -------------- next part
2008 Sep 25
1
INCLUDE/EXCLUDE PATTERN RULES problem on MAC OS
Bonjour, I would like to back up several desktop computer, and notebooks who are running under Mac OS, on a linux server with ext3 filesystem. I try several times with rsync, using include lists ( --include-from=my_include_file). The include list is working except for directory and filename with special character ( like french one : ?,?,? etc ...). The pattern in the include list don't match