annotate modules/arpa_inet-c++-tests @ 17074:d4ccb0388f18

fts: reduce two or more trailing slashes to just one, usually * lib/fts.c (fts_open): Upon initialization, if a name ends in two or more slashes, trim all but the final one. But if a name consists solely of two slashes, don't modify it. If it consists solely of three or more slashes, strip all but one. This is part of the solution to a minor problem with rm: it would print a bogus ELOOP diagnostic when failing to remove the slash-decorated name of a symlink-to-directory: $ mkdir d && ln -s d s && env rm -r s/ rm: cannot remove 's': Too many levels of symbolic links With the change below and a trivial don't-trim-trailing-slashes adjustment to remove.c, it does this: $ env rm -r s/ rm: cannot remove 's/': Not a directory Improved by: Eric Blake
author Jim Meyering <meyering@redhat.com>
date Tue, 04 Sep 2012 11:36:38 +0200
parents c475f1b6d204
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
14036
c475f1b6d204 arpa_inet: Use the common idioms with C++ support.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 Files:
c475f1b6d204 arpa_inet: Use the common idioms with C++ support.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2 tests/test-arpa_inet-c++.cc
c475f1b6d204 arpa_inet: Use the common idioms with C++ support.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3 tests/signature.h
c475f1b6d204 arpa_inet: Use the common idioms with C++ support.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4
c475f1b6d204 arpa_inet: Use the common idioms with C++ support.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 Status:
c475f1b6d204 arpa_inet: Use the common idioms with C++ support.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 c++-test
c475f1b6d204 arpa_inet: Use the common idioms with C++ support.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7
c475f1b6d204 arpa_inet: Use the common idioms with C++ support.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8 Depends-on:
c475f1b6d204 arpa_inet: Use the common idioms with C++ support.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 ansi-c++-opt
c475f1b6d204 arpa_inet: Use the common idioms with C++ support.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10
c475f1b6d204 arpa_inet: Use the common idioms with C++ support.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 configure.ac:
c475f1b6d204 arpa_inet: Use the common idioms with C++ support.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12
c475f1b6d204 arpa_inet: Use the common idioms with C++ support.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13 Makefile.am:
c475f1b6d204 arpa_inet: Use the common idioms with C++ support.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 if ANSICXX
c475f1b6d204 arpa_inet: Use the common idioms with C++ support.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 TESTS += test-arpa_inet-c++
c475f1b6d204 arpa_inet: Use the common idioms with C++ support.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16 check_PROGRAMS += test-arpa_inet-c++
c475f1b6d204 arpa_inet: Use the common idioms with C++ support.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17 test_arpa_inet_c___SOURCES = test-arpa_inet-c++.cc
c475f1b6d204 arpa_inet: Use the common idioms with C++ support.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18 test_arpa_inet_c___LDADD = $(LDADD) $(INET_NTOP_LIB) $(INET_PTON_LIB) $(LIBSOCKET)
c475f1b6d204 arpa_inet: Use the common idioms with C++ support.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 endif