Make mktexlsr work even in root's home
OBS-URL: https://build.opensuse.org/package/show/Publishing:TeXLive/texlive?expand=0&rev=388
This commit is contained in:
parent
9b9218ef73
commit
d5f2b7fb72
2
public.c
2
public.c
@ -176,7 +176,7 @@ int main(int argc, char *argv[])
|
|||||||
if (access(cwd, X_OK) < 0) {
|
if (access(cwd, X_OK) < 0) {
|
||||||
int ret = chdir(pwd->pw_dir);
|
int ret = chdir(pwd->pw_dir);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
fprintf(stderr, "public: %m\n");
|
fprintf(stderr, "public: %s: %m\n", pwd->pw_dir);
|
||||||
}
|
}
|
||||||
free(cwd);
|
free(cwd);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user