1 --- rpm-4.4.4/lib/rpmlock.c.orig 2005-12-08 19:32:31.000000000 +0100
2 +++ rpm-4.4.4/lib/rpmlock.c 2005-12-16 01:00:31.601268584 +0100
4 /* XXX oneshot to determine path for fcntl lock. */
5 /* XXX rpmlock_path is set once, cannot be changed with %{_rpmlock_path}. */
7 - char * t = rpmGenPath(rootdir, rpmlock_path_default, NULL);
9 + char * check = rpmExpand(rpmlock_path_default, NULL);
10 + if (check[0] != '\0')
11 + t = rpmGenPath(rootdir, rpmlock_path_default, NULL);
13 if (t == NULL || *t == '\0' || *t == '%')