be 'a_filename' what ever the redirection is.
Else, a evil server could arbitrary choose the filename (in the current
directory), and as file creation is done with O_TRUNC (or O_APPEND in
resume case), an evil server could override the file he wants.
Regards.
--
Sebastien Marie
Hi,
The following patch change the system(3) call in swapctl(8) to
vfork(2)+exec(2).
swapctl use it for invoking mount_nfs(8) when fstab contains option for
swapping to NFS files.
Comments ? OK ?
--
Sebastien Marie
Index: swapctl.c
On Thu, Aug 13, 2015 at 09:00:34AM -0600, Todd C. Miller wrote:
On Thu, 13 Aug 2015 13:59:37 +0200, Sebastien Marie wrote:
The following patch change the system(3) call in swapctl(8) to
vfork(2)+exec(2).
swapctl use it for invoking mount_nfs(8) when fstab contains option for
swapping
Hi,
Here a patch that corrects three err() to errx() calls.
- a if condition don't set errno
- strlcpy(3) don't set errno (no mention is man page)
- ca_readpass() already manage errno error message with warn(3)
Comments ? OKs ?
--
Sebastien Marie
Index: ikeca.c
Hi,
The following patch corrects an invalid 644 mode to 0644. fcopy() set
the mode using open(3).
The previous mode requested was 1610 (644 in octal), but the value is
modified by umask value.
This file is the zip exported archive.
--
Sebastien Marie
Index: ikeca.c
On Wed, Aug 12, 2015 at 09:17:35AM +0200, Sebastien Marie wrote:
The previous mode requested was 1610 (644 in octal), but the value is
modified by umask value.
I need base 8 revision... it was 1204.
--
Sebastien Marie
as it was just allocated with pool_get(9) (via
MCLGETI or MGETHDR). m_freem() will return it with pool_put(9).
I also keep to comments spelling correction.
Comments or post-lock OK ?
--
Sebastien Marie
Index: dev/ic/ti.c
===
RCS file
) by xsnprintf()...
- convert system(3) to vfork(2)/execv(2)
The reason of the use of vfork(2) instead of fork(2) is that I follow
how system(3) is implemented (with vfork the parent is suspended until
the child makes a call to execve(2) or an exit).
Comments ? OK ?
--
Sebastien Marie
Index
@@ ca_revoke(struct ca *ca, char *keyname)
snprintf(cmd, sizeof(cmd), env CADB='%s/index.txt'
%s ca %s-config %s -keyfile %s/private/ca.key
--key %s
+-key '%s'
-gencrl
-cert %s/ca.crt
-md sha1
--
Sebastien Marie
On Sun, Jul 12, 2015 at 03:56:21PM +0200, Sebastien Marie wrote:
_ctype_ is used in ctype.h header in order to define inline functions
for determining character class: isalnum(3), isalpha(3), ...
The character class comes from lc_ctype.
Switch _ctype_ from global variable to function
On Sun, Jul 12, 2015 at 05:51:13PM +0200, Sebastien Marie wrote:
The patch add the following functions:
- newlocale(3)
- duplocale(3)
- freelocale(3)
- uselocale(3)
Documentation is missing for now. A separate patch will be provided.
Updated patch:
- add stubs for xlocale
On Sun, Jul 12, 2015 at 03:51:14PM +0200, Sebastien Marie wrote:
ctype.h header define MB_CUR_MAX macro to be the maximum number of bytes
in a character specified by the current locale (category LC_CTYPE).
Switch the implementation from global variable to function, in order to
get the value
() implementation will need
_toupper_tab(locale_t).
Regards.
--
Sebastien Marie
Same as before, but for _tolower_tab_
As _tolower_tab_ was the last initialized variable from
__install_currentrunelocale_ctype(), remove the now empty function.
--
Sebastien Marie
Index: b/include/ctype.h
===
--- a/include
Same as previous, but for _toupper_tab_.
--
Sebastien Marie
Index: b/include/ctype.h
===
--- a/include/ctype.h 2015-06-30 12:19:07.342557440 +0200
+++ b/include/ctype.h 2015-06-30 12:19:31.892786432 +0200
@@ -55,7 +55,7
that will be addressed in
following patch.
--
Sebastien Marie
Index: b/lib/libc/locale/_def_messages.c
===
--- a/lib/libc/locale/_def_messages.c 2015-07-08 11:38:48.371645285 +0200
+++ b/lib/libc/locale/_def_messages.c 2015-07-08 11:56
).
--
Sebastien Marie
Index: b/include/ctype.h
===
--- a/include/ctype.h 2015-07-05 06:50:41.963279015 +0200
+++ b/include/ctype.h 2015-07-05 06:52:28.894297063 +0200
@@ -53,7 +53,7 @@
__BEGIN_DECLS
-extern const char *_ctype_
ctype.h header define MB_CUR_MAX macro to be the maximum number of bytes
in a character specified by the current locale (category LC_CTYPE).
Switch the implementation from global variable to function, in order to
get the value from the current locale state (global or per-thread).
--
Sebastien
Change the loadlocale() prototype to be callable with specified locale_t
parameter. It will permit to reuse the code path for uselocale(3).
The current usage (with setlocale(3)) will just pass the global locale
state to function call.
--
Sebastien Marie
Index: b/lib/libc/locale/setlocale.c
them (as for
__mlocale_changed and __nlocale_changed before).
--
Sebastien Marie
Index: b/lib/libc/locale/localeconv.c
===
--- a/lib/libc/locale/localeconv.c 2015-07-08 11:56:51.883919979 +0200
+++ b/lib/libc/locale
On Sun, Jul 12, 2015 at 01:53:54PM +0200, Christian Weisgerber wrote:
Sebastien Marie:
--- tcpdump.c 18 Apr 2015 18:28:38 - 1.70
+++ tcpdump.c 11 Jul 2015 20:35:11 -
@@ -603,8 +603,10 @@ default_print_ascii(const u_char *cp, un
printf(\n);
for (i = 0; i
() the locale state is enought.
--
Sebastien Marie
Index: b/include/locale.h
===
--- a/include/locale.h 2015-07-12 16:18:14.994338422 +0200
+++ b/include/locale.h 2015-07-12 16:21:38.775929858 +0200
@@ -95,6 +95,20 @@
extern struct
previously printed char on line ?
$ echo 'bad thing\rgood thing'
good thing
+ putchar(c);
+ else
+ putchar('.');
}
}
--
Sebastien Marie
retrieve their values from the
current locale.
Thanks for you reviewing.
--
Sebastien Marie
in front of
list), if it isn't already in the list.
In order to prevent race that would result adding multiple times the
same runelocale in the list (by multiple threads) I use a mutex in
_newrunelocale() to protect all the adding code path.
--
Sebastien Marie
Index: b/lib/libc/locale
state locale, as setlocale(1) function only operate on global
state.
Later patches will change slightly that to reuse code for creating new
locale state.
--
Sebastien Marie
Index: b/lib/libc/locale/setlocale.c
===
--- a/lib/libc
)
and co.
- pass LC_GLOBAL_LOCALE to configure ctype with setlocale(3).
Please note this patch is the bigger of the serie, as it combines
removing the global _CurrentRuneLocale variable with use a dynamic
locale state (_current_locale()).
If need, I could split it.
--
Sebastien Marie
Index: b/lib/libc
.
- _set_current_locale() is used to change the current state: restore
global state in thread or change the per-thread state.
Thanks for your comments.
--
Sebastien Marie
Index: b/lib/libc/locale/Makefile.inc
===
--- a/lib/libc
On Tue, Jul 07, 2015 at 10:37:34AM +0200, Stefan Sperling wrote:
On Tue, Jul 07, 2015 at 09:25:30AM +0200, Sebastien Marie wrote:
Hi,
_C_ctype_ (ctype) and _DefaultRuneLocale.rl_runetype (wctype) are
currently unsynced, resulting regress/lib/libc/locale/check_isw to
failed.
Yes
: all
have this construct (array of 256, initialisation with 128 elements).
I also do several tests with MALLOC_OPTIONS and differents sizes of
array, and all remainings elements are 0.
Comments ? OK ?
--
Sebastien Marie
Index: locale/runetable.c
Hi,
While working on regress test for locale, I saw check_isw regress test
have same message for isgraph/islower ('6').
Discriminate the both, and renumerate tests.
Comments ? OK ?
Please note the regress test is currently failing. I hope to fix it
soon.
--
Sebastien Marie
Index
Hi,
There are no ${LIBCSRCDIR}/arch/${MACHINE_CPU}/locale directories in
cvs. Remove the unused search path from Makefile.
OK ? Comments ?
--
Sebastien Marie
Index: locale/Makefile.inc
===
RCS file: /cvs/src/lib/libc/locale
to edit by hand the diff...
Thanks for the review !
--
Sebastien Marie
).
As it is for -stable, it includes errata.
- standard packages. As it is for -stable, it includes security
updates for packages.
Thanks.
--
Sebastien Marie
!
--
Sebastien Marie
.
+there will be two captures: 2 and 4.
.Sh SEE ALSO
.Xr fnmatch 3 ,
.Xr re_format 7 ,
Committed, thanks.
--
Sebastien Marie
() before
expansion.
if (strstr(val, $DOCUMENT_URI) != NULL) {
if ((path = url_encode(desc-http_path)) == NULL)
return (NULL);
--
Sebastien Marie
On Tue, Jun 23, 2015 at 04:54:22PM +0200, Sebastien Marie wrote:
the matched substrings should be escaped with url_encoded() before
expansion.
Here the patch to address the escaping problem.
OK?
--
Sebastien Marie
Index: server_http.c
On Sat, Jun 13, 2015 at 10:41:42PM +0200, Joerg Sonnenberger wrote:
On Sat, Jun 13, 2015 at 10:04:55AM +0200, Sébastien Marie wrote:
What is the relationship with libc/locale ? libc++ needs some POSIX
functions in locale area that are missing in OpenBSD. These functions
are uselocale(3),
to do that. So I think we should only allow FIFOs for stdin where people
presumably know what they're doing, not generally:
that makes sens. your diff (the corrected one) is ok.
thanks.
--
Sebastien Marie
On Fri, May 29, 2015 at 11:35:01PM +0100, Nicholas Marriott wrote:
Oops
301 - 340 of 340 matches
Mail list logo