diff options
author | Guillem Jover <guillem@debian.org> | 2019-02-01 03:57:54 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2019-02-23 15:43:31 +0100 |
commit | 41bc12bd8d518653aa4564d22fea675717391798 (patch) | |
tree | bd1ace62db2300ff87f64671180ac89905d4f081 /lib | |
parent | 0c84e3473bf7765565ddb07cebfab09d28a94582 (diff) | |
download | dpkg-41bc12bd8d518653aa4564d22fea675717391798.tar.gz |
dpkg: Clarify error on unknown system user/group in statoverride database
Closes: #920880
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dpkg/db-fsys-override.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/dpkg/db-fsys-override.c b/lib/dpkg/db-fsys-override.c index 981bd1891..e079c5ffb 100644 --- a/lib/dpkg/db-fsys-override.c +++ b/lib/dpkg/db-fsys-override.c @@ -208,8 +208,9 @@ ensure_statoverrides(enum statdb_parse_flags flags) fso->uname = NULL; if (fso->uid == (uid_t)-1 && !(flags & STATDB_PARSE_LAX)) - ohshit(_("unknown user '%s' in statoverride file"), - thisline); + ohshit(_("unknown system user '%s' in statoverride file; the system user got removed\n" + "before the override, which is most probably a packaging bug, to recover you\n" + "can remove the override manually with %s"), thisline, DPKGSTAT); /* Move to the next bit */ thisline = ptr + 1; @@ -229,8 +230,9 @@ ensure_statoverrides(enum statdb_parse_flags flags) fso->gname = NULL; if (fso->gid == (gid_t)-1 && !(flags & STATDB_PARSE_LAX)) - ohshit(_("unknown group '%s' in statoverride file"), - thisline); + ohshit(_("unknown system group '%s' in statoverride file; the system group got removed\n" + "before the override, which is most probably a packaging bug, to recover you\n" + "can remove the override manually with %s"), thisline, DPKGSTAT); /* Move to the next bit */ thisline = ptr + 1; |