Compare commits
2 commits
master
...
allan/linu
Author | SHA1 | Date | |
---|---|---|---|
![]() |
11075f6736 | ||
![]() |
7cd8010d65 |
2 changed files with 28 additions and 2 deletions
|
@ -84,7 +84,7 @@ static int sync_cleandb(const char *dbpath)
|
||||||
|
|
||||||
/* build the full path */
|
/* build the full path */
|
||||||
len = snprintf(path, PATH_MAX, "%s%s", dbpath, dname);
|
len = snprintf(path, PATH_MAX, "%s%s", dbpath, dname);
|
||||||
if(len > PATH_MAX) {
|
if(len >= PATH_MAX) {
|
||||||
pm_printf(ALPM_LOG_ERROR, _("could not remove %s%s: path exceeds PATH_MAX\n"),
|
pm_printf(ALPM_LOG_ERROR, _("could not remove %s%s: path exceeds PATH_MAX\n"),
|
||||||
dbpath, dname);
|
dbpath, dname);
|
||||||
}
|
}
|
||||||
|
@ -245,7 +245,7 @@ static int sync_cleancache(int level)
|
||||||
|
|
||||||
/* build the full filepath */
|
/* build the full filepath */
|
||||||
len=snprintf(path, PATH_MAX, "%s%s", cachedir, ent->d_name);
|
len=snprintf(path, PATH_MAX, "%s%s", cachedir, ent->d_name);
|
||||||
if(len > PATH_MAX) {
|
if(len >= PATH_MAX) {
|
||||||
pm_printf(ALPM_LOG_ERROR, _("skipping %s%s: path exceeds PATH_MAX\n"),
|
pm_printf(ALPM_LOG_ERROR, _("skipping %s%s: path exceeds PATH_MAX\n"),
|
||||||
cachedir, ent->d_name);
|
cachedir, ent->d_name);
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -0,0 +1,26 @@
|
||||||
|
self.description = "directory replaced by symlink in another package (linux-firmware issue)"
|
||||||
|
|
||||||
|
lp = pmpkg("p", "1-1")
|
||||||
|
lp.files = ["d1/file",
|
||||||
|
"d2/file"]
|
||||||
|
self.addpkg2db("local", lp)
|
||||||
|
|
||||||
|
p1 = pmpkg("d")
|
||||||
|
p1.files = ["d1/file",
|
||||||
|
"d2 -> d1"]
|
||||||
|
self.addpkg2db("sync", p1)
|
||||||
|
|
||||||
|
p2 = pmpkg("p", "2-1")
|
||||||
|
p2.depends = ["d"]
|
||||||
|
self.addpkg2db("sync", p2)
|
||||||
|
|
||||||
|
self.args = "-Syu"
|
||||||
|
|
||||||
|
self.addrule("PACMAN_RETCODE=0")
|
||||||
|
self.addrule("PKG_EXIST=p")
|
||||||
|
self.addrule("PKG_EXIST=d")
|
||||||
|
self.addrule("FILE_TYPE=d1|dir")
|
||||||
|
self.addrule("FILE_TYPE=d2|link")
|
||||||
|
|
||||||
|
self.expectfailure = True
|
||||||
|
|
Loading…
Add table
Reference in a new issue