/[packages]/cauldron/rpm/current/SOURCES/rpm-4.6.0-do-not-run-lua-scripts-when-chroot-fails.patch
ViewVC logotype

Contents of /cauldron/rpm/current/SOURCES/rpm-4.6.0-do-not-run-lua-scripts-when-chroot-fails.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 343 - (show annotations) (download)
Sat Jan 8 00:05:19 2011 UTC (13 years, 3 months ago) by tmb
File size: 485 byte(s)
imported package rpm
1 --- rpm-4.6.0/lib/psm.c~ 2010-05-06 14:36:50.000000000 +0200
2 +++ rpm-4.6.0/lib/psm.c 2010-05-06 15:10:06.000000000 +0200
3 @@ -510,7 +510,11 @@
4 rootFd = open(".", O_RDONLY, 0);
5 if (rootFd >= 0) {
6 if (rootDir != NULL && strcmp(rootDir, "/") && *rootDir == '/')
7 - xx = chroot(rootDir);
8 + if(chroot(rootDir) < 0) {
9 + rpmlog(RPMLOG_ERR, _("Unable to change root directory: %m\n"));
10 + free(sname);
11 + return rc;
12 + }
13 xx = rpmtsSetChrootDone(ts, 1);
14 }
15 }

  ViewVC Help
Powered by ViewVC 1.1.30