Re: RFC: Change pwd to assume -L by default

2014-06-30 Thread Pádraig Brady
On 06/30/2014 03:40 AM, Jim Meyering wrote: > On Sun, Jun 29, 2014 at 9:42 AM, Pádraig Brady wrote: >> POSIX says that `pwd` without options should assume -L is specified. >> pwd is most often invoked as a shell builtin and bash, dash, zsh, ksh >> all follow POSIX and assume that -L is the default

seq feature: print letters

2014-06-30 Thread assafgordon
Hello, I'd like to suggest a patch to allow seq to generate letter sequences. With this patch, 'seq' can print letters of alphabets in the current locale (or user-specified language). Examples: # print all letters in the current alphabet seq --alphabet seq -a # print the first 10

Re: seq feature: print letters

2014-06-30 Thread Pádraig Brady
On 06/30/2014 11:23 AM, assafgor...@gmail.com wrote: > Hello, > > I'd like to suggest a patch to allow seq to generate letter sequences. > > With this patch, 'seq' can print letters of alphabets in the current locale > (or user-specified language). Examples: > > # print all letters in the cu

[PATCH 2/2] chcon: use specified_context directly

2014-06-30 Thread Namhyung Kim
Since it's verified by security_check_context() it can be used in change_file_context() without converting to context_t everytime. * src/chcon.c (change_file_context): Use specified_context directly. --- src/chcon.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --gi

[PATCH 1/2] chcon: use security_check_context() for context validation

2014-06-30 Thread Namhyung Kim
It seems context_new() and _free() are used for checking validity of a specified context. The libselinux provides security_check_context for this purpose so use it. Note that context_new() can fail for a valid context - e.g. ENOMEM. * src/chcon.c (main): Use security_check_context(). --- src/ch

Re: [PATCH 1/2] chcon: use security_check_context() for context validation

2014-06-30 Thread Pádraig Brady
On 06/30/2014 04:12 PM, Namhyung Kim wrote: > It seems context_new() and _free() are used for checking validity of > a specified context. The libselinux provides security_check_context > for this purpose so use it. > > Note that context_new() can fail for a valid context - e.g. ENOMEM. > > * src

Re: [PATCH 2/2] chcon: use specified_context directly

2014-06-30 Thread Pádraig Brady
On 06/30/2014 04:12 PM, Namhyung Kim wrote: > Since it's verified by security_check_context() it can be used in > change_file_context() without converting to context_t everytime. > > * src/chcon.c (change_file_context): Use specified_context directly. > --- > src/chcon.c | 16 >

Re: [PATCH 1/2] chcon: use security_check_context() for context validation

2014-06-30 Thread Pádraig Brady
On 06/30/2014 04:42 PM, Pádraig Brady wrote: > On 06/30/2014 04:12 PM, Namhyung Kim wrote: >> It seems context_new() and _free() are used for checking validity of >> a specified context. The libselinux provides security_check_context >> for this purpose so use it. >> >> Note that context_new() can

Re: seq feature: print letters

2014-06-30 Thread Assaf Gordon
>> On Jun 30, 2014, at 5:24, Pádraig Brady wrote: >> >> On 06/30/2014 11:23 AM, assafgor...@gmail.com wrote: >> I'd like to suggest a patch to allow seq to generate letter sequences. > I notice about 45 copies of the A-Z alphabet, would it be worth introducing > aliases to avoid copies? Yes, w