diff options
author | Scott James Remnant <scott@netsplit.com> | 2005-06-09 06:12:56 +0100 |
---|---|---|
committer | Scott James Remnant <scott@netsplit.com> | 2005-06-09 06:12:56 +0100 |
commit | b9d60c6ae08500e8b1a6794ce7b7e7981ad319ed (patch) | |
tree | 5dbeb0ee4eb687d2686ac74de8c19e9840f89e55 /src | |
parent | 994a81816181e2dd30304d884e10a87b4163dbb0 (diff) | |
download | dpkg-b9d60c6ae08500e8b1a6794ce7b7e7981ad319ed.tar.gz |
dpkg (1.13.7) experimental; urgency=low
The "Maidenhead Creeping Water Plant" Release.
* Reduced inability to open a log file to a warning, suppressed for
non-root operations. Closes: #312383.
-- Scott James Remnant <scott@netsplit.com> Thu, 9 Jun 2005 06:12:56 +0100
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index 8265068d5..035569499 100644 --- a/src/main.c +++ b/src/main.c @@ -288,7 +288,13 @@ static void setfile(const struct cmdinfo *cip, const char *value) { int v; v= open(value, (O_CREAT|O_APPEND|O_WRONLY), 0644); - if (v < 0) ohshite(_("couldn't open log `%s'"), value); + if (v < 0) { + if (getuid() || geteuid()) + return; + else + fprintf(stderr, _("couldn't open log `%s': %s\n"), + value, strerror(errno)); + } lastpipe= cip->parg; if (*lastpipe) { |