File: 07-deal_with_unresolved_UIDs_and_GIDs.diff

package info (click to toggle)
ftpmirror 1.96%2Bdfsg-16
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, trixie
  • size: 1,080 kB
  • sloc: perl: 2,496; sh: 1,811; makefile: 51; ansic: 22
file content (28 lines) | stat: -rwxr-xr-x 1,164 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#! /bin/sh /usr/share/dpatch/dpatch-run
## 07-deal_with_unresolved_UIDs_and_GIDs.dpatch by Dario Minnucci (midget) <debian@midworld.net>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Deal with unresolved UIDs and GIDs in the FTP session (see BTS #504482)

@DPATCH@
diff -urNad ftpmirror-1.96+dfsg~/Fan/Attrib/Attrib.pm ftpmirror-1.96+dfsg/Fan/Attrib/Attrib.pm
--- ftpmirror-1.96+dfsg~/Fan/Attrib/Attrib.pm	1999-10-28 12:32:18.000000000 +0200
+++ ftpmirror-1.96+dfsg/Fan/Attrib/Attrib.pm	2008-11-10 13:57:17.560730075 +0100
@@ -366,7 +366,7 @@
 	# check owner
 	if (!defined($y->{y_owner})) {
 		debug(8, " check ok: no owner\n");
-	} elsif ($y->{y_owner} =~ /^[-_\w]+$/) {
+	} elsif ($y->{y_owner} =~ /^[()?-_\w]+$/) {
 		debug(8, " check ok: owner = $y->{y_owner}\n");
 	} else {
 		carp("$y has wrong owner: $y->{y_owner}");
@@ -376,7 +376,7 @@
 	# check group
 	if (!defined($y->{y_group})) {
 		debug(8, " check ok: no group\n");
-	} elsif ($y->{y_group} =~ /^[-_\w]+$/) {
+	} elsif ($y->{y_owner} =~ /^[()?-_\w]+$/) {
 		debug(8, " check ok: group = $y->{y_group}\n");
 	} else {
 		carp("$y has wrong group: $y->{y_group}");