Magellan Linux

Contents of /trunk/debianutils/patches/debianutils-2.14.1-no-bs-namespace.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 144 - (show annotations) (download)
Tue May 8 20:06:05 2007 UTC (17 years ago) by niro
File size: 1412 byte(s)
-import

1 Allow dots in the names, bug #95173. Patch by Kerin Millar.
2
3 diff -urN debianutils-2.14.1/run-parts.8 debianutils-2.14.1-r1/run-parts.8
4 --- debianutils-2.14.1/run-parts.8 2004-12-10 17:10:37.000000000 +0000
5 +++ debianutils-2.14.1-r1/run-parts.8 2005-07-12 00:47:44.000000000 +0100
6 @@ -26,8 +26,8 @@
7 Other files and directories are silently ignored.
8
9 If the \-\-lsbsysinit option is not given then the names must consist
10 -entirely of upper and lower case letters, digits, underscores, and
11 -hyphens.
12 +entirely of upper and lower case letters, digits, underscores, hyphens
13 +and periods. However, the name must not begin with a period.
14
15 If the \-\-lsbsysinit option is given, then the names must not end
16 in .dpkg\-old or .dpkg\-dist or .dpkg\-new or .dpkg\-tmp, and must
17 diff -urN debianutils-2.14.1/run-parts.c debianutils-2.14.1-r1/run-parts.c
18 --- debianutils-2.14.1/run-parts.c 2005-02-20 04:25:49.000000000 +0000
19 +++ debianutils-2.14.1-r1/run-parts.c 2005-07-12 00:47:25.000000000 +0100
20 @@ -146,7 +148,7 @@
21 return !regexec(&tradre, c, 0, NULL, 0);
22 }
23 else {
24 - if (regcomp(&classicalre, "^[a-zA-Z0-9_-]+$", REG_EXTENDED | REG_NOSUB)) {
25 + if (regcomp(&classicalre, "^[a-zA-Z0-9_-][a-zA-Z0-9._-]+$", REG_EXTENDED | REG_NOSUB)) {
26 error("regex failure");
27 exit(1);
28 }