Parent Directory | Revision Log
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 |