Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

made xinetd.aug case insensitive on attribute names #4

Closed
wants to merge 2 commits into from
Closed

made xinetd.aug case insensitive on attribute names #4

wants to merge 2 commits into from

Conversation

mchf
Copy link
Contributor

@mchf mchf commented May 31, 2012

xinetd is case insensitive on attribute names since version 2.3.4
see: http://www.xinetd.org/cgi-bin/cvsweb.cgi/xinetd/CHANGELOG?annotate=1.1

| "disable" | "max_load" | "rlimit_as" | "rlimit_cpu"
| "rlimit_data" | "rlimit_rss" | "rlimit_stack" | "v6only"
| "deny_time" | "umask" | "mdns" | "libwrap")
attr_one (/socket_type|protocol|wait|user|group|server|instances|rpc_version|rpc_number|id|port|nice|banner|bind|interface|per_source|groups|banner_success|banner_fail|disable|max_load|rlimit_as|rlimit_cpu|rlimit_data|rlimit_rss|rlimit_stack|v6only|deny_time|umask|mdns|libwrap/i)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you split this line to keep it under 80 columns, please?

@mchf
Copy link
Contributor Author

mchf commented Jun 4, 2012

I can't. I have problem with rewritting regexp.

e.g., if I rewrite my regext (1)

|attr_lst_eq (/server_args|log_type|access_times|type|flags|redirect|cps/i)

to (2)

|attr_lst_eq (/(server_args|log_type|access_times|type|flags|redirect|cps)/i)

which should be equivalent to (3)

|attr_lst_eq (/server_args/i|/log_type/i|/access_times/i|/type/i|/flags/i|/redirect/i|/cps/i)

then the patch is not working. As a reaction to this discussion, I've added

let _ = print_regexp ( lens_ctype default_attr)

and got same regexp for all above regexps. Moreover, augparse xinetd.aug has a problem with later one regexp ( (3) ) and reports

*** glibc detected *** augparse: malloc(): memory corruption: 0x0000000000688440 ***

So, whats wrong?

@lutter lutter closed this Jul 19, 2012
@lutter
Copy link
Member

lutter commented Jul 19, 2012

I just merged the pull request - thanks for submitting it.

The problem with splitting the regexps is a real problem; I have a patch for part of the problem, but not all of it. The partial fix is in commit 4c1a223

@lutter
Copy link
Member

lutter commented Jul 19, 2012

Actually, that commit seems to fix the problem completely. At least the reformatted xinetd lens from commit b7c6216 works.

thedrow added a commit to thedrow/augeas that referenced this pull request Sep 30, 2016
# This is the 1st commit message:
Use the address sanitizer in CI.
Cache compilation result and compile in parallel.

# This is the commit message hercules-team#2:

show config.log on failure.

# This is the commit message hercules-team#3:

Set compiler to GCC 6 explicitly.

# This is the commit message hercules-team#4:

upgrade linker.

# This is the commit message hercules-team#5:

Try upgrading ld.

# This is the commit message hercules-team#6:

Require sudo.

# This is the commit message hercules-team#7:

Move to trusty.

# This is the commit message hercules-team#8:

Upgrade binutils from PPA.

# This is the commit message hercules-team#9:

Print exit code.

# This is the commit message hercules-team#10:

Install selinux in order to pass the build.

# This is the commit message hercules-team#1:

Fold error.

# This is the commit message hercules-team#2:

Upgrade autotools.

# This is the commit message hercules-team#3:

Extract install section to script.

# This is the commit message hercules-team#4:

Fix name of ppa:ubuntu-toolchain-r/test.

# This is the commit message hercules-team#5:

Add -y.

# This is the commit message hercules-team#6:

Use correct path for config.log.

# This is the commit message hercules-team#7:

Fix spelling.

# This is the commit message hercules-team#8:

Added test script.

# This is the commit message hercules-team#9:

Cache compilation result.

# This is the commit message hercules-team#10:

Show test suite error log.

# This is the commit message hercules-team#1:

Fold error.

# This is the commit message hercules-team#2:

Correct ld and c flang.
@Alan6233 Alan6233 mentioned this pull request Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants