]> git.pld-linux.org Git - packages/util-vserver.git/blame - util-vserver-rpm-fake-resolver-badperm-errorlogging.patch
- rel 2; build with glibc, so it will also work on systems with newer kernels that...
[packages/util-vserver.git] / util-vserver-rpm-fake-resolver-badperm-errorlogging.patch
CommitLineData
591da0ec
ER
1saves your day if you get unexplainable errors from rpm install because /vservers/test has bad permissions:
2
3# la -d /vservers/test/
4drwx------ 23 root root 4096 Jun 16 02:01 /vservers/test/
5
6# vrpm test -- -Uhv masqmail-0.2.20-5.amd64.rpm
7Preparing... ########################################### [100%]
8rpm-fake-resolver: getpwnam(): Invalid argument
9 1:masqmail ########################################### [100%]
10warning: user mail does not exist - using root
11warning: user mail does not exist - using root
12warning: user mail does not exist - using root
13warning: user mail does not exist - using root
14#
15
16real fix would be 'chmod 755 /vservers/test' if you just knew that is the problem!
17
18--- util-vserver-0.30.210/src/rpm-fake-resolver.c~ 2006-06-16 03:22:36.000000000 +0300
19+++ util-vserver-0.30.210/src/rpm-fake-resolver.c 2006-06-16 03:22:40.000000000 +0300
f7b5538a
AM
20@@ -300,6 +300,10 @@
21 if (args.chroot) Echroot(args.chroot);
4ce575dc
ER
22 Echdir("/");
23
f7b5538a
AM
24+ if (access("/", X_OK) == -1) {
25+ WRITE_MSG(2, "*** root directory is not accessible for specified uid. rpm-fake-resolver will most likely fail.\n");
26+ }
27+
4ce575dc
ER
28 activateContext(args.ctx, args.in_ctx, args.caps, args.flags);
29 Esetgroups(0, &args.gid);
30 Esetgid(args.gid);
f7b5538a 31 Echdir("/");
4ce575dc 32
f7b5538a 33
This page took 0.058743 seconds and 4 git commands to generate.