]> git.pld-linux.org Git - packages/util-vserver.git/blob - util-vserver-rpm-fake-resolver-badperm-errorlogging.patch
- fix sysctl location
[packages/util-vserver.git] / util-vserver-rpm-fake-resolver-badperm-errorlogging.patch
1 saves your day if you get unexplainable errors from rpm install because /vservers/test has bad permissions:
2
3 # la -d /vservers/test/
4 drwx------  23 root root 4096 Jun 16 02:01 /vservers/test/
5
6 # vrpm test -- -Uhv masqmail-0.2.20-5.amd64.rpm
7 Preparing...                ########################################### [100%]
8 rpm-fake-resolver: getpwnam(): Invalid argument
9    1:masqmail               ########################################### [100%]
10 warning: user mail does not exist - using root
11 warning: user mail does not exist - using root
12 warning: user mail does not exist - using root
13 warning: user mail does not exist - using root
14 #
15
16 real 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
20 @@ -300,6 +300,10 @@
21    if (args.chroot) Echroot(args.chroot);
22    Echdir("/");
23  
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 +         
28    activateContext(args.ctx, args.in_ctx, args.caps, args.flags);
29    Esetgroups(0, &args.gid);
30    Esetgid(args.gid);
31    Echdir("/");
32  
33
This page took 0.029623 seconds and 3 git commands to generate.