Magellan Linux

Annotation of /trunk/debianutils/patches/debianutils-2.28.3-no-bs-namespace.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 467 - (hide annotations) (download)
Sun Feb 10 10:59:21 2008 UTC (16 years, 4 months ago) by niro
File size: 1422 byte(s)
-rediffed patches

1 niro 467 Allow dots in the names, bug #95173. Patch by Kerin Millar.
2     Re-sourced for 2.28.2
3    
4     diff -Nur debianutils-2.28.2/run-parts.8 debianutils-2.28.2-no-bs-namespace/run-parts.8
5     --- debianutils-2.28.2/run-parts.8 2007-11-12 11:24:24.000000000 -0500
6     +++ debianutils-2.28.2-no-bs-namespace/run-parts.8 2007-12-21 13:13:48.000000000 -0500
7     @@ -27,7 +27,8 @@
8    
9     If neither the \-\-lsbsysinit option nor the \-\-regex option is given
10     then the names must consist entirely of upper and lower case letters,
11     -digits, underscores, and hyphens.
12     +digits, underscores, hyphens, and periods. However, the name must not begin
13     +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 -Nur debianutils-2.28.2/run-parts.c debianutils-2.28.2-no-bs-namespace/run-parts.c
18     --- debianutils-2.28.2/run-parts.c 2007-11-12 11:24:24.000000000 -0500
19     +++ debianutils-2.28.2-no-bs-namespace/run-parts.c 2007-12-21 13:14:32.000000000 -0500
20     @@ -161,7 +161,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     }